Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom 404

 
Lara Martin
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,
How do I create custom 404 error pages in weblogic 6.1?
Thanks
Lawrence
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lara thanks for hanging around but would you kindly read our naming rules and re-register?
To do custom error page handling use the <error-page> tag in web.xml
<error-page>
<error-code>404</error-code>
<location>/Whatever.jsp</location>
</error-page>
 
William Chang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum may be very similar as Topic: How to customize the 404 error page for Tomcat .
In your example, for your custom 404 error page "/whatever.jsp", does know why the 404 error happens --- the oringnal client's request? I may want to rediect the different requests to different right URL on the purpose. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic