Ok, now I get it.

Sorry, it was my mistake for not reading the sentence carefully.

-Rashmi

On 4/18/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
On 4/18/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:
> 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")

Read the entire sentence:

 The values of these attributes must be equal to the return values
 of the HttpServletRequest methods getRequestURI, getContextPath,
 getServletPath, getPathInfo, getQueryString respectively, invoked on
 the request object passed to *the first servlet object in the call chain*
 that received the request from the client.

The 404 page is *not* the "first servlet object" so obviously those
values are not the same.

HTH,
--
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]

Reply via email to