users@glassfish.java.net

Re: Possible bug in servlet

From: <Jan.Luehe_at_Sun.COM>
Date: Wed, 11 Jun 2008 11:21:03 -0700

Paul/Uday,

Paul Sandoz wrote:

> Jan.Luehe_at_Sun.COM wrote:
>
>> I think the right thing would have been for the container to issue a
>> redirect to
>> "http://localhost:8080/HelloWorldWebApp/", which would have been matched
>> by your servlet-mapping of the form "/*", resulting in these return
>> values:
>>
>> request.getPathInfo() = "/"
>> request.getRequestURI() = "/HelloWorldWebApp/"
>> request.getRequestURL() = "http://localhost:8080/HelloWorldWebApp/"
>>
>> Paul and Uday, would you agree?
>>
>
> Either a redirect or a 404 makes sense to me.
>
> My experience with redirection with Jersey is that developers like to
> control the support, some want it off. Originally i had redirection
> support turned on, but developers complained so i turned it off by
> default.


I've filed https://glassfish.dev.java.net/issues/show_bug.cgi?id=5141

Thanks,

Jan

>