dev@jersey.java.net

Re: [Jersey] Building a Web-App with Jersey and JSP

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 23 Mar 2010 09:19:19 -0400

You need to configure Jersey as a servlet filter and set the com.sun.jersey.config.property.WebPageContentRegex property to exclude JSPs. Take a look at the bookstore sample for an example web.xml that does this.

Marc.

On Mar 23, 2010, at 8:20 AM, Wolf, Timo wrote:

> Hi,
>
> I am building a Jersey based Web-App that also contains "normal" jsp pages.
>
> I configured the web.xml to map all requests to the Jersey Servlet Adapter.
>
> <servlet-mapping>
> <servlet-name>ServletAdaptor</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> Now, the problem is that the JSP pages are not found.
>
> Is there a way to map all requests to Jersey except the *.jsp requests?
>
> Thanks a lot,
>
> Timo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>