You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dmitry Melekhov <dm...@belkam.com> on 2002/09/20 08:18:04 UTC
error page for jsp
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>