users@jersey.java.net

Trailing slash on root resource

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

Hi all

Is there a way to respond to the "root" address without a trailing slash?

  @Path("/")
  public class RootResource { ... }

  <servlet-mapping>
    <servlet-name>app</servlet-name>
    <url-pattern>/app/*</url-pattern>
  </servlet-mapping>

I've found that the resource above only works with <http://localhost/app/>
but that <http://localhost/app> gives a 404. Am I doing something wrong
here?

Later
Charlie