There are two ways to handle exception in JSP declarativly. Add the code in web.xml.
First:
In this you can define http error code
Second
In this you can define Exception Type
To help the error handler JSP analyze the problem and generate a detailed response, the
servlet container sets certain attributes in the request before dispatching it to the error page. Like
javax.servlet.error.exception_type Contains the Class object for the
uncaught exception
[ March 03, 2004: Message edited by: Prakash Dwivedi ]
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"