Wednesday, November 26, 2014

How to define Error Page in web.xml


Exception Based

<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/ExceptionError.jsp</location>
</error-page>

HTTP status code based 

<error-page>
<error-code>404</error-code>
<location>/NotFound.jsp</location>
</error-page>

No comments:

Post a Comment

Scrum and Scrum master

Scrum  Scrum is a framework which helps a team to work together.  It is like a rugby team (the scrum name comes from rugby game). Scrum enco...