File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User Defined Error Page for 404

 
N mn
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I am trying to give the user defined error page for 404. My web.xml entry contains :
<error-page>
<error-code>404</error-code>
<location>http://localhost:8080/ignoreurl.wml</location>
</error-page>
But it seems I am still getting the default 404 page from within Tomcat.
Any suggestions as to what is wrong ?
Thanx,
NM
 
Dave Comeau
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you restart Tomcat and check the startup logs for any clues?
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Your username does not meet the requirements of the official Javaranch naming policy. Please choose one that does.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic