tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kief Morris <k...@bitBull.com>
Subject Re: Custom error pages!!
Date Tue, 12 Dec 2000 12:32:30 GMT
Pankaj Bhagat typed the following on 12:58 12/12/2000 +0100
>But just for information, can you comment on the <error-pages> tag not
>working in the deployment descriptor of Tomcat 3.2

I just tried it, it works fine for me. Are you specifying the full names of the
exceptions? e.g. java.lang.IllegalArgumentException rather than just
IllegalArgumentException.

Here's what worked for me in my WEB-INF/web.xml file, Tomcat 3.2 final.

	<error-page>
		<error-code>404</error-code>
		<location>/not_found.jsp</location>
	</error-page>
	
	<error-page>
		<exception-type>java.lang.NullPointerException</exception-type>
		<location>/error.jsp</location>
	</error-page>
	
Kief

---
              bitBull makes the Internet bite: http://www.bitBull.com/demos/


Mime
View raw message