On Jul 30, 2010, at 10:06 AM, Alexandru Popescu ☀ wrote:
> Quick status update:
>
> 1. pluggin in sitemesh worked without any issues
Great.
> 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?
>
Unfortunately i don't understand enough about sitemesh to help you
much there. Is the entity from the decorator available from servlet
artifacts?
In Jersey it is possible to inject the ServletContext/Config and
HttpServletRequest.
Paul.
> :- 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>