# Index.jsp Sample

This topic inludes the source code for the Index.jsp Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/navigation/handleException/

## Sample Source Code

`01 <%@ page language="java" contentType="text/html;charset=UTF-8"%> 02 <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%> 03 <%@ taglib uri="netui-tags-html.tld" prefix="netui"%> 04 <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%> 05 <netui:html> 06 <head> 07 <title> 08 index.jsp 09 </title> 10 </head> 11 <body> 12 <jsp:include page="/resources/jsp/header.jsp"/> <br/> 13 <h3>Exception Handling Sample</h3> 14 <blockquote> 15 <p>This sample shows how to handle exceptions in a Page Flow. 16 <p>When an exception arises in a Page Flow, you can send the user 17 to a error.jsp page, which contains information on the nature of the error 18 and how to recover from it. 19 <p>Clicking the link below intentionally causes an exception to be thrown, 20 an exception which is caught by the Controller file's @jpf:catch annotation. 21 You will be forwarded to the showError.jsp page. 22 <p> 23 24 <netui:anchor action="triggerError"> 25 Cause exception 26 </netui:anchor> 27 28 </blockquote> 29 </body> 30 </netui:html>`