users@jersey.java.net

Re: [Jersey] Jersey and Sitemesh

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

Quick status update:

1. pluggin in sitemesh worked without any issues
2. unfortunately I don't seem to find a way to access the entity from
the sitemesh decorators. While I know this is not always a good idea,
I would have liked the possibility. Any thoughts?

:- 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
>
>