How to configure Error page in java

To configure the default error page in a webproject in java

first open web.xml

and insert the following example code

<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>

and then create the error information page that is error.jsp.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image