aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom 404
 
Similar Threads
Custom 404 pages in WebLogic6.1
own "error report" page in Tomcat
Error pages
how to forward to another page, if location.href page is not found
Handling response.redirect errors in JSP page