users@jersey.java.net

Re: [Jersey] Jersey and Sitemesh

From: Alexandru Popescu ☀ <the.mindstorm.mailinglist_at_gmail.com>
Date: Fri, 30 Jul 2010 10:11:16 +0300

Thanks Daniel and James.

James, to your last question in that bug report, I think I've noticed
that setting in the
com.sun.jersey.spi.container.servlet.ServletContainer:

FEATURE_FILTER_FORWARD_ON_404
            = "com.sun.jersey.config.feature.FilterForwardOn404"

:- alex

On Fri, Jul 30, 2010 at 10:02 AM, James Strachan
<james.strachan_at_gmail.com> wrote:
> 2010/7/30 Alexandru Popescu ☀ <the.mindstorm.mailinglist_at_gmail.com>:
>> Hi,
>>
>> Is there anything special I need to know before trying to use Sitemesh
>> with Jersey? I googled this before asking it here and the only thing
>> I've found was a post about some "java.lang.IllegalStateException:
>> Cannot forward after response has been committed" with no clear
>> solution.
>
> the thing to be careful of is you might hit this issue...
> https://jersey.dev.java.net/issues/show_bug.cgi?id=485
>
> you often have to configure Jersey with the WebPageContentRegex
> setting to specify the regex of what URIs you don't want Jersey to
> render (like JSP, JavaScript, images and so forth) - unless you're
> JAXRS beans are all within a simple path (like "/app" or something) so
> you don't have to map Jersey filter to "/*"
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>