On 4/15/05, Remy Maucherat <[EMAIL PROTECTED]> wrote:
> On 4/15/05, Yaakov Chaikin <[EMAIL PROTECTED]> wrote:
> > I checked out the spec section 8.4.2 Forwarded Request Parameters.
> >
> > It does seem to me that it implies that the parameters is where one
> > would get the original URI from.
> >
> > However, there are still 2 problems that I can see:
> > 1) The API says: "URL the client used to make the request"
> > 2) 8.4.2 says that these parameters are NOT to be set if you obtain
> > the RequestDispatcher object using getNamedDispatcher() method. How
> > would you get at the original URI/URL then (without custom coding)?
> 
> This is not constructive argumentation.

I am not arguing with you. Tried it on WebLogic and it works exactly
as Tomcat does. So, obviously, you are right. I am just trying to
understand why you are right.

> 1) Applies to the core request class behavior. Cool, it works. The RD
> has to wrap it using a request wrapper, so it does not apply.

So, what you are really saying is that the API should have pointed out
that getRequestURL() does not work the same way every time. Then, I am
not sure how anyone could have arrived at the conclusion that the
words "... URL the **client** used to make the request..." really
means "unless something else happens behind the scene" and the
returned value is no longer what the **client** used. That doesn't
seem strange to you, taking only into account what has been said?

Seems pretty clear to me. Unless, I am overlooking some other part of
the spec that says something else. (Still bad since API didn't mention
it, but at least understandable.)

> 2) How about trying things instead of making what-if theories ? (hint:
> it works fine) ;)

I haven't tried this particular part. True. I HAVE tried everything
else I mentioned however. Are you saying that how things really work
ONCE AGAIN is not the way the servlet spec describes they should?
Quote 8.4.2:
"If the forwarded servlet was obtained by using the getNamedDispatcher
method, these attributes **must not be set.**"

Thanks,
Yaakov.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to