users@jersey.java.net

Re: [Jersey] Trailing slash on root resource

From: Charles Brooking <public+java_at_charlie.brooking.id.au>
Date: Thu, 21 May 2009 21:42:49 +1000 (EST)

> On May 21, 2009, at 3:11 AM, Charles Brooking wrote:
>> Is there a way to respond to the "root" address without a trailing
>> slash?
>
> No, it is one of those boundary cases with Servlet.
>
> What servlet container are you using?
>
> GF will redirect from http://localhost/app to http://localhost/app/

I'm using Tomcat, which does redirect from /contextPath to /contextPath/.

However, where the Jersey servlet is concerned /contextPath/servletPath
simply returns a 404.

Later
Charlie