This content has been marked as final.
Show 3 replies
-
1. Re: How can i change the default 404 error page
peterj Aug 15, 2007 7:04 PM (in response to sandanr)Add the following to your web.xml file:
<error-page> <error-code>404</error-code> <location>/yourErrorPage.html</location> </error-page>
Of course, yourErrorPage.html must be part of your application.
If you want it globally used, try adding the above to server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml -
2. Re: How can i change the default 404 error page
sandanr Aug 16, 2007 10:02 AM (in response to sandanr)Thank you,
Just another question. Where do I have to put these file? I try in jboss/server/default
jboss/server/default/deploy
But it didn't work.
Thank you again. -
3. Re: How can i change the default 404 error page
peterj Aug 16, 2007 1:24 PM (in response to sandanr)What files? The yourErrorPage.html (from my example)? I already indicated that it had to be part of your application.