Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom pages for 404 & 500 errors

Status
Not open for further replies.

liorza

Programmer
Mar 3, 2004
27
US
Hi all,
I have a web app that is using struts and websphere.
How can I configure it to render my own custom html pages for the 404 and 500 errors?

Should I update the web.xml?

Can some one post an example?

Thanks,
Lior
 
That is correct, you just update the web.xml.

Here is an example of what you add:

Code:
<error-page>
   <error-code>404</error-code>
   <location>/web/404.jsp</location>
</error-page>
 
Thanks rekenaar,

That is what we ended up doing.
It works :)
Lior
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top