Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error-Page don't work with the web.xml-entries  RSS feed

 
Lisa Meyer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I tried to create my own error pages with the following entries in the web.xml:

<error-page>
<exception-type>common.exceptions.NoSSLException</exception-type>
<location>/errorPages/SSLErrorPage.jsp</location>
</error-page>


<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/errorPages/errorPage.jsp</location>
</error-page>

Now, it will be come a NoSSLException then should be display the SSLErrorPage, but I get the errorPage.jsp from Throwable.
The Head-First book (page 594) means it should be work.
What is wrong on my entries or what can be the problem?

I worked with tomcat server 5.5.4

Thanks for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!