• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to configure 404 error

 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am making an application in JSP and i want that like if user enters the URL for my page and somehow there come an error 404 , then i want that if 404 error come then it will automatically divert to other page and if 500 error come then it will diverted to some other page.

I have a hint that we have to some configuration in some configuration file , please tell me the whole procedure, that what we write and in which field we write.

Thanks
Regards
Gaurav
[ December 14, 2005: Message edited by: Bear Bibeault ]
 
C Broussard
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in web.xml

<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>


www.binaryfrost.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!