[ 
https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41500
 ] 

James Holmes commented on WW-1873:
----------------------------------

I'm not sure how to handle this now that the portlet code has been moved to its 
own plugin. Implementing the patch attached to this ticket would place a 
dependency from the core S2 code on the portlet plugin. It seems that that 
there needs to be another way to handle properly getting the correct servlet 
context in a portlet/servlet independent way.

> Render freemarker templates correctly under portlet environment
> ---------------------------------------------------------------
>
>                 Key: WW-1873
>                 URL: https://issues.apache.org/struts/browse/WW-1873
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration, Views
>    Affects Versions: 2.0.6
>            Reporter: Oleg Gorobets
>            Assignee: James Holmes
>             Fix For: 2.1.0
>
>         Attachments: WW-Freemarker.patch
>
>
> FreemarkerTemplateEngine class uses ServletActionContext to get 
> ServletContext object, which returns null under portlet environment. Get it 
> from ServletContextHolderListener.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to