You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Oleg Gorobets (JIRA)" <ji...@apache.org> on 2007/04/06 17:47:51 UTC

[jira] Created: (WW-1873) Render freemarker templates correctly under portlet environment

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


[jira] Assigned: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes reassigned WW-1873:
--------------------------------

    Assignee:     (was: James Holmes)

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


[jira] Updated: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "Oleg Gorobets (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Gorobets updated WW-1873:
------------------------------

    Attachment: WW-Freemarker.patch

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


[jira] Updated: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen updated WW-1873:
----------------------------

    Fix Version/s: 2.0.10

> 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
>             Fix For: 2.0.10, 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.


[jira] Resolved: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-1873.
----------------------------------

    Resolution: Fixed

Fixed by WW-2101

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


[jira] Updated: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1873:
---------------------------

    Fix Version/s: 2.1.0

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


[jira] Assigned: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes reassigned WW-1873:
--------------------------------

    Assignee: James Holmes

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


[jira] Commented: (WW-1873) Render freemarker templates correctly under portlet environment

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ 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.