You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2004/06/01 10:27:37 UTC

Re: ErrorPage.jsp - how to get the address of the offending page?

> Does the request attribute
> javax.servlet.error.request_uri  suit your needs ?
> (from the servlet spec, SRV.9.9.1)

Actually returns null. I'm using Tomcat 3; Could that
be the reason?

Here's my snippet:

<%@ page isErrorPage="true"%>
<%
System.out.println(request.getAttribute("javax.servlet.error.request_uri"));

%>


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


RE: ErrorPage.jsp - how to get the address of the offending page?

Posted by Dola Woolfe <do...@yahoo.com>.
So am I out of luck or is there an alternative way?


--- Mike Curwen <gb...@gb-im.com> wrote:
> Yes, that would be the reason.  From the
> corresponding section of the
> spec for servlet 2.2:
> 
> If the location of the error handler is a servlet or
> a JSP, the
> following
> request attributes can be set:
> . javax.servlet.error.status_code
> . javax.servlet.error.exception_type
> . javax.servlet.error.message
>  
> So you'd need tomcat 4 and above for
> javax.servlet.error.request_uri
>  
> 
> > -----Original Message-----
> > From: Dola Woolfe [mailto:dolachin@yahoo.com] 
> > Sent: Tuesday, June 01, 2004 3:28 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Re: ErrorPage.jsp - how to get the
> address of the 
> > offending page?
> > 
> > 
> > 
> > > Does the request attribute
> > > javax.servlet.error.request_uri  suit your needs
> ?
> > > (from the servlet spec, SRV.9.9.1)
> > 
> > Actually returns null. I'm using Tomcat 3; Could
> that
> > be the reason?
> > 
> > Here's my snippet:
> > 
> > <%@ page isErrorPage="true"%>
> > <% 
> >
>
System.out.println(request.getAttribute("javax.servlet.error.r
> > equest_uri"));
> > 
> > %>
> > 
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


RE: ErrorPage.jsp - how to get the address of the offending page?

Posted by Mike Curwen <gb...@gb-im.com>.
Yes, that would be the reason.  From the corresponding section of the
spec for servlet 2.2:

If the location of the error handler is a servlet or a JSP, the
following
request attributes can be set:
. javax.servlet.error.status_code
. javax.servlet.error.exception_type
. javax.servlet.error.message
 
So you'd need tomcat 4 and above for javax.servlet.error.request_uri
 

> -----Original Message-----
> From: Dola Woolfe [mailto:dolachin@yahoo.com] 
> Sent: Tuesday, June 01, 2004 3:28 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: ErrorPage.jsp - how to get the address of the 
> offending page?
> 
> 
> 
> > Does the request attribute
> > javax.servlet.error.request_uri  suit your needs ?
> > (from the servlet spec, SRV.9.9.1)
> 
> Actually returns null. I'm using Tomcat 3; Could that
> be the reason?
> 
> Here's my snippet:
> 
> <%@ page isErrorPage="true"%>
> <% 
> System.out.println(request.getAttribute("javax.servlet.error.r
> equest_uri"));
> 
> %>
> 
> 
> 


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