You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Volker Turau <tu...@pcsrv1.informatik.fh-wiesbaden.de> on 2002/02/04 16:30:12 UTC

Errorpage

Hi,

in section SRV.9.9.2 of the Servlet Spec. Version 2.3 a list of request
attributes is given (e.g. javax.servlet.error.exception). These request
attributes must be set by the container. However using Tomcat 4.0.1 the
attributes are not available for an errorpage specified in the page
directive. They are only available, if the errorpage is specified in
web.xml. Feature or bug?


Thanks a lot!

volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau/jsp


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Errorpage

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Mon, 4 Feb 2002, Volker Turau wrote:

> Date: Mon, 4 Feb 2002 16:30:12 +0100 (MET)
> From: Volker Turau <tu...@pcsrv1.informatik.fh-wiesbaden.de>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat user-list <to...@jakarta.apache.org>
> Subject: Errorpage
>
> Hi,
>
> in section SRV.9.9.2 of the Servlet Spec. Version 2.3 a list of request
> attributes is given (e.g. javax.servlet.error.exception). These request
> attributes must be set by the container. However using Tomcat 4.0.1 the
> attributes are not available for an errorpage specified in the page
> directive. They are only available, if the errorpage is specified in
> web.xml. Feature or bug?
>

The page directive is JSP specific, and tells Tomcat that you want the
"JSP way" of handling these exceptions, rather than the "servlet way".  If
you want to handle JSP page exceptions and see the request attributes, I
suggest that you dispense with the page directives and just declare your
error pages in web.xml.

>
> Thanks a lot!
>
> volker turau
> FH Wiesbaden Fachbereich Informatik
> Tel.: +49-611-9495-205 FAX +49-611-9495-210
> http://www.informatik.fh-wiesbaden.de/~turau/jsp
>

Craig


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>