oh my. I did not look into tomcat for this one, although I normally do use
it as a test platform (its these 3 for now). Tomcat sure adds another
dimension. Apart from that, I was going to agree that context-relative makes
more sense (however it means that you can get to the server root only with
an absolute URL). The following is from the API docs for
ServletContext.getResource():
"Returns a URL to the resource that is mapped to a specified path. The path
must begin with a "/" and is interpreted as relative to the current context
root. "
it would be nice to get a statement from orion dev on this (as always)
-----Original Message-----
From: Duane Fields <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Samstag, 15. Juli 2000 01:18
Subject: Re: sendRedirect in orion and jrun
>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
>>
>
>