tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Melekhov ...@belkam.com>
Subject error page for jsp
Date Fri, 20 Sep 2002 06:18:04 GMT
Hello!

I can't  understand how works directive error-page in web.xml for
jsps.

I added following in web.xml:

  <error-page>
        <exception-type>java.lang.NullPointerException</exception-type>
        <location>/is/errorpge.jsp</location>
      </error-page>

I case of exception IE says that page is not found, i.e. there ie no 
redirect to error page.


If I add page errorPage = ..  to .jsp file, all work OK.

Could someone explain me what I'm doing wrong ?
Do I need to add errorPage to every jsp?
I'd like to write this in web.xml :-)



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message