This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Custom 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Custom 404" Watch "Custom 404" New topic
Author

Custom 404

Lara Martin
Greenhorn

Joined: Feb 06, 2002
Posts: 23
Friends,
How do I create custom 404 error pages in weblogic 6.1?
Thanks
Lawrence
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
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

Joined: Aug 06, 2003
Posts: 4
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Custom 404
 
It's not a secret anymore!