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/ExtensionDevKit/TaglibExtDevKit/TaglibWebProject/

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>Error</title>
09   </head>
10   <body>
11     <p>
12       An error has occurred:
13     </p>
14     <blockquote>
15       <netui:label value="{request.errorMessage}" defaultValue="" />
16       <br/>
17       <netui:exceptions showMessage="true" />
18     </blockquote>
19   </body>
20 </netui:html>
21 
22 <!-- Some browsers will not display this page unless the response status code is 200. -->
23 <% response.setStatus(200); %>