users@jersey.java.net

RE: [Jersey] favicon.ico

From: Jordi Domingo <noseya_at_hotmail.com>
Date: Fri, 11 Sep 2009 13:14:12 +0200

Hi Charlie,
I didnt noticed it was a regex :))
Many thanks for your help!
Jordi

> Date: Thu, 10 Sep 2009 23:46:52 -0500
> From: charlie.knudsen_at_gmail.com
> To: users_at_jersey.dev.java.net
> Subject: Re: [Jersey] favicon.ico
>
> Hi Jordi,
> The regex you are using -- /(images|css|js|jsp|favicon.ico)/.* --
> does not match the path you are trying to serve -- /favicon.ico --
> because the favicon path does not end with a / and one or more char as
> the regex requires.
>
> So to get this to work you need to update the regex. Based on what
> you had before I think the below regex should work.
>
> /(((images|css|js|jsp)/.*)|(favicon\.ico))
>
> hope that helps,
>
> Charlie
>
> On Thu, Sep 10, 2009 at 8:59 PM, Jordi Domingo <noseya_at_hotmail.com> wrote:
> >
> > Hi again :)
> > I cant get favicon.ico to work. It's located at the server root i.e http://myhost/favicon.ico
> > I configured jersey to filter all requests:
> > <filter-mapping>
> > <filter-name>Jersey Filter</filter-name>
> > <url-pattern>/*</url-pattern>
> > </filter-mapping>
> > I tried using something like this
> > <init-param>
> > <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name>
> > <param-value>/(images|css|js|jsp|favicon.ico)/.*</param-value>
> > </init-param>
> > but doesnt work.:(
> > Im looking for a nice solution to avoid handcoding this.
> > Thanks community!
> > ________________________________
> > Celebramos el 10º aniversario de Messenger. ¡Únete a la fiesta!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

_________________________________________________________________
Descárgate Internet Explorer 8 ¡Y gana gratis viajes con Spanair!
http://www.vivelive.com/spanair