File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Other Java Products and Servers
Customize error page
Joined: Aug 11, 2004
Aug 11, 2004 09:24:00
Hi Guys, I�m trying to customize the error page with Resin 3.08.
I added the following to resin.conf:
<error-page error-code='404' location='/missing.htm'/>
Instead of my customized 404 error-page, I get a default 404 error saying: "/missing.htm was not found on this server. "
This is what the log say:
[15:11:50.095] real-path /missing.htm -> /data2/error/missing.htm
[15:11:50.096] no default
defined for URL: '/missing.htm'
Does anyone know how can I resolve this problem?
Thanks a lot,
Joined: Jul 01, 2004
Sep 01, 2004 04:43:00
You have to define your default error page in web.xml
I agree. Here's the link:
subject: Customize error page
Handle all error codes other than one
User Defined Error Page for 404
Tomcat cant recognize "error-page" tag in web.xml
Problem with Custom Error Page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015