You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Matthew Payne (JIRA)" <ji...@apache.org> on 2008/11/11 17:13:37 UTC
[jira] Created: (WW-2865) Plugin Disables the Ability to mix jsp
and freemarker decorators
Plugin Disables the Ability to mix jsp and freemarker decorators
-----------------------------------------------------------------
Key: WW-2865
URL: https://issues.apache.org/struts/browse/WW-2865
Project: Struts 2
Issue Type: Bug
Components: Plugin - SiteMesh
Affects Versions: 2.1.3, 2.1.4, Future
Reporter: Matthew Payne
If one looks at the sitemesh example application, an application can have both Freemarker and JSP decorators.
In the sitemesh plugin filter aka --->
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>
org.apache.struts2.sitemesh.FreeMarkerPageFilter
</filter-class>
</filter>
The logic blinding thinks that all decorators in decorators.xml are freemarker templates.
This would make a configuration such as below impossible --->
<decorator name="velocity" page="velocity.vm">
<pattern>/velocity.html</pattern>
</decorator>
<decorator name="freemarker" page="freemarker.ftl">
<pattern>/freemarker.html</pattern>
</decorator>
<decorator name="test" page="test.jsp">
<pattern>/agent.jsp</pattern>
</decorator>
I would like to also note.
The related issues https://issues.apache.org/struts/browse/WW-1744
and https://issues.apache.org/struts/browse/WW-2246
Further cripple flexibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2865) Plugin Disables the Ability to mix jsp
and freemarker decorators
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45917#action_45917 ]
Musachy Barroso commented on WW-2865:
-------------------------------------
Do you have a recommended solution? or a patch? I am not really sure what the fix is
> Plugin Disables the Ability to mix jsp and freemarker decorators
> -----------------------------------------------------------------
>
> Key: WW-2865
> URL: https://issues.apache.org/struts/browse/WW-2865
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - SiteMesh
> Affects Versions: 2.1.3, 2.1.4, Future
> Reporter: Matthew Payne
>
> If one looks at the sitemesh example application, an application can have both Freemarker and JSP decorators.
> In the sitemesh plugin filter aka --->
> <filter>
> <filter-name>sitemesh</filter-name>
> <filter-class>
> org.apache.struts2.sitemesh.FreeMarkerPageFilter
> </filter-class>
> </filter>
> The logic blinding thinks that all decorators in decorators.xml are freemarker templates.
> This would make a configuration such as below impossible --->
> <decorator name="velocity" page="velocity.vm">
> <pattern>/velocity.html</pattern>
> </decorator>
> <decorator name="freemarker" page="freemarker.ftl">
> <pattern>/freemarker.html</pattern>
> </decorator>
> <decorator name="test" page="test.jsp">
> <pattern>/agent.jsp</pattern>
> </decorator>
> I would like to also note.
> The related issues https://issues.apache.org/struts/browse/WW-1744
> and https://issues.apache.org/struts/browse/WW-2246
> Further cripple flexibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.