Ads

How to configure Error page in java

June 29, 2008
Filed under: Featured, 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.

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
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.
Click to hear an audio file of the anti-spam word

Subscribe without commenting