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

Customize error page

 
Mariano Guelar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys, I�m trying to customize the error page with Resin 3.08.
I added the following to resin.conf:


<host id=''>
<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 servlet defined for URL: '/missing.htm'

Does anyone know how can I resolve this problem?

Thanks a lot,

Mariano
 
Rajan Chinna
Ranch Hand
Posts: 320
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to define your default error page in web.xml
Example:
<error-page>
<error-code>404</error-code>
<location>/errorHandler.jsp</location>
</error-page>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic