• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying custom error page  RSS feed

 
Madathil Vadakke
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want display my customized error page when i give the url http://localhost:8080/anything. for this, i changed my web.xml in /ROOT/WEB-INF/ folder and added the follwing code.
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>

I have placed my 404.jsp in the /ROOT folder.

But I am getting the built in 404 error page when i type the URL.
Please help me in this regard .

Ullas
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you restarted the container or application after making these changes?
If so, you should look at the container's logs to see if something else is going wrong.
[ July 16, 2007: Message edited by: Ben Souther ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!