01 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
02 <%@taglib prefix="netui" uri="netui-tags-html.tld"%>
03
04 <html>
05 <head>
06 <netui:base/>
07 <link href="../../resources/css/style.css" type="text/css" rel="stylesheet"/>
08 <title>showError.jsp, to Demonstrate @jpf:catch annotation in Controller.jpf</title>
09 </head>
10 <body style="margin:0">
11 <jsp:include page="/resources/jsp/header.jsp"/>
12 <blockquote>
13 <h3>Welcome to showError.jsp...</h3>
14
15 <p>The following diagram illustrates what just happened:</P>
16
17 <ol class="list">
18
19 <li>You clicked the "Cause exception" link which invoked the "triggerError"
20 action method.</li>
21 <li>In the Controller file, the triggerError action method was intentionally coded
22 (for demonstration purposes) to throw an Exception.</li>
23 <li>The @jpf:catch annotation detected the Exception,
24 and forwarded you to this page, showError.jsp.</li>
25
26 </ol>
27 <p>
28 <netui:image src="/WebApp/navigation/handleException/whatJustHappened.gif" />
29 </p>
30
31
32
33 <hr>
34 <p><netui:anchor action="begin">Throw another error</netui:anchor>
35 <p><netui:anchor href="/WebApp/navigation/navigationController.jpf">Return to Web Application Samples: Navigation</netui:anchor>
36 <p><netui:anchor href="/WebApp/Controller.jpf">Return to Web Application Samples Home</netui:anchor>
37 <p> </p>
38 </blockquote>
39
40 </body>
41 </html>
|