users@jersey.java.net

Re: [Jersey] Redirecting paths that do not end in /

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 25 Jun 2009 15:53:59 +0200

Hi,

See here:

https://jersey.dev.java.net/nonav/apidocs/1.1.0-ea/jersey/com/sun/jersey/api/core/ResourceConfig.html
#FEATURE_REDIRECT

In your web.xml you can do:

      <init-param>
          <param-name>com.sun.jersey.config.feature.Redirect</param-
name>
          <param-value>true</param-value>
      </init-param>

Paul.

On Jun 25, 2009, at 3:31 PM, Christopher Piggott wrote:

> "Jersey has a redirection mechanism, which if enabled, automatically
> performs redirection to a request URL ending in a '/' if a request URL
> does not end in a '/' and the matching @Path does end in a '/'."
>
> Where can I find the documentation that tells me how to enable this?
>
> --Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>