posted 17 years ago
It is not advicable to catch RuntimeException and its subclasses.
Do you have any specific reasons to do? If so,
1. Write a JSP with page attribute isErrorPage="true", so that you will get exception implicit object avaliable for you to see what exception occured.
2. In the other JSP you can add errorPage="<pointing to the previous JSP>".
OR
1. Step-1 above
2. In web.xml(Deployment Decriptor),
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>(pointing to the previous JSP you created)</location>
</error-page>