Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jsp error pages

Status
Not open for further replies.

MultipartRequest

Programmer
Sep 12, 2001
19
CL
i want to redirect errors to my own error pages, how can i do that
 
You have to set your errorPage in the page attributes. When an error is hit this page is displayed. Heres the code for it

<%@ page import=&quot;&quot; errorPage=&quot;../common/error.jsp&quot;%>

On the error page you also have to have state that the page is an ErrorPage in the page attributes

<%@ page language=&quot;java&quot; isErrorPage=&quot;true&quot;%>

errorPages will only be displayed when run-time errors are encountered - not compile errors
 
oh and by the way an exception is past into an error page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top