• Post Reply Bookmark Topic Watch Topic
  • New Topic

configuring error page in DD  RSS feed

 
Amru Jahagirdar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My web.xml's version is 'web-app_2_3.dtd'.
I tried to configure a general error page as ,

<web-app..>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/myerror.html</location>
</error-page>
</web-app>

When I run a JSP that throws an arithmetic exception, I expect my error page to get displayed.
Instead of that, It shows me http 500 error.

If I include a page directive in my JSP explicitly, then it shows the error page correctly.
I wonder why is this happening. Is it anything related to DTD version?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder if this could be related to this.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this will also help you ..

configuring error page
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!