Hi,
I think Orion is wrong (if expands / to your relative directory)
http://www.foobar.com/bar/
"/" should expand to http://www.foobar.com
"" should expand to http://www.foobar.com/bar
"/bar" should expand to http://www.foobar.com/bar
if you can't expand to other things than "/" -> "/bar", you cannot
redirect to another application directory on your server.
-stephan
At 11:18 14.07.00 -0500, you wrote:
I'm struggling with this too. Tomat does what JRun does, interprets relative
URLs as arelative to the root rather than the the context. I think Orion's
implementation makes more sense, but the spec is unclear. It simply says
that relative URLs must be translated to abosolute URLs, that's all.
If Tomcat is the reference implementation, then by definition it is "right",
even if it's wrong. That being said, unless Tomcat changes itself, shouldn't
Orion follow suite?.
--
Duane Fields
[EMAIL PROTECTED]
Managing Engineer, Web Development
----- Original Message -----
From: ""Jen Hsien Huang"" <[EMAIL PROTECTED]>
Newsgroups: uo.listserv.orion
Sent: Friday, July 14, 2000 10:33 AM
Subject: RE: sendRedirect in orion and jrun
> Of cause, since API says server will resolve relative, so Orion is right.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owner-]On Behalf Of
Christian Sell
> Sent: Friday, July 14, 2000 7:43 PM
> To: Orion-Interest
> Subject: sendRedirect in orion and jrun
>
>
> from within a servlet, i am making the following call:
>
> response.sendRedirect("/");
>
> interesting thing: in orion, this takes me back to the context root of the
> web application. In JRun 3.0, it takes me to the root of the web server.
As
> far as I can see, the API docs say that the server will resolve relative
> URLs, but which one is right in this case?
>
> Christian Sell
>