mirror of
https://github.com/apache/struts.git
synced 2026-08-05 22:56:59 +00:00
Merge pull request #570 from apache/WW-5187-velocity
[WW-5187] Comments out Velocity based PageFilter
This commit is contained in:
@@ -50,7 +50,7 @@ public class VelocityPageFilter extends SiteMeshFilter {
|
||||
// TODO: Remove heavy coupling on horrible SM2 Factory
|
||||
Factory factory = Factory.getInstance(new Config(filterConfig));
|
||||
factory.refresh();
|
||||
return new FreemarkerMapper2DecoratorSelector(factory.getDecoratorMapper());
|
||||
return new VelocityMapper2DecoratorSelector(factory.getDecoratorMapper());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,8 +22,9 @@
|
||||
<!DOCTYPE struts PUBLIC
|
||||
"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
|
||||
"http://struts.apache.org/dtds/struts-2.5.dtd">
|
||||
|
||||
|
||||
<struts>
|
||||
<bean class="org.apache.struts2.sitemesh.FreemarkerPageFilter" static="true" optional="true"/>
|
||||
<bean class="org.apache.struts2.sitemesh.VelocityPageFilter" static="true" optional="true"/>
|
||||
<!-- if you want to use Velocity with Sitemesh, please define this bean in your struts.xml -->
|
||||
<!-- bean class="org.apache.struts2.sitemesh.VelocityPageFilter" static="true" optional="true"/ -->
|
||||
</struts>
|
||||
|
||||
Reference in New Issue
Block a user