Yup, request.getAttribute("javax.servlet.forward.request_uri") does
exactly what I need, thank you very much.
Rashmi Rubdi a écrit :
Well, the wording in the servlet spec "The values of these attributes
must be equal to the return values of the..." don't reflect what I
see:
I was thinking that request.getRequestURI returns the same results as
request.getAttribute("javax.servlet.forward.request_uri")
request.getRequestURI gives the URL of the 404 page but,
request.getAttribute("javax.servlet.forward.request_uri") gives the
URL of the invalid page that forwarded to the 404 page.
Anyway, as you mentioned the OP should be able to get the forward URL
from javax.servlet.forward.request_uri
-Rashmi
On 4/18/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
On 4/18/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:
> > The Servlet Spec is your friend -- SRV 8.4.2, specifically :-)
> No, none of the methods listed under SRV 8.4.2 show the referring URL
> information
You misunderstand -- there is no reference to the "referrer" in the
original posting, nor is it relevant.
The page being requested that was *not found* and hence caused
the /forward/ to the custom 404 page /is/ identified by the request
attributes mentioned in SRV 8.4.2 -- javax.servlet.forward.request_uri
and so on.
--
Hassan Schroeder ------------------------ [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]