users@glassfish.java.net

Re: Possible bug in servlet

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 11 Jun 2008 10:51:17 +0200

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.

Thanks,
Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109