error page handling in web.xml

by Selva 2010-01-27 19:37:34

Here is entries for web.xml to handle errors :
<error-page>
<error-code>404</error-code>
<location>/pagenot found.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error.html</location>
</error-page>

Tagged in:

923
like
0
dislike
0
mail
flag

You must LOGIN to add comments