Error.jsp Sample
This topic inludes the source code for the Error.jsp Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/
Sample Source Code
01 <!--Generated by WebLogic Workshop-->
02 <%@ page language="java" contentType="text/html;charset=UTF-8" isErrorPage="true"%>
03 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
04 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
05 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
06 <netui:html>
07 <head>
08 <title>An Error Occurred</title>
09 <link href="resources/css/style.css" type="text/css" rel="stylesheet"/>
10 <netui:base/>
11 </head>
12 <body bgcolor=white style="margin:0">
13 <jsp:include page="/resources/jsp/header.jsp"/>
14 <br/>
15 <p>
16 An error has occurred:
17 </p>
18 <blockquote>
19 <netui:label value="{request.errorMessage}" defaultValue="" />
20 <br/>
21 <netui:exceptions showMessage="true" />
22
23 <p> </p>
24
25 <p>Please return to the Page Flow Samples Home page.</p>
26
27 <p>
28 <netui:anchor href="Controller.jpf">Home</netui:anchor>
29 </p>
30
31 </blockquote>
32 </body>
33 </netui:html>
34
35 <!-- Some browsers will not display this page unless the response status code is 200. -->
36 <% response.setStatus(200); %>
|