Skip to content

Commit

Permalink
Merge pull request #570 from apache/WW-5187-velocity
Browse files Browse the repository at this point in the history
[WW-5187] Comments out Velocity based PageFilter
  • Loading branch information
yasserzamani authored Jun 17, 2022
2 parents e6bc93d + fc2aebd commit dc4e403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected DecoratorSelector initDecoratorSelector(SiteMeshWebAppContext webAppCo
// 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());
}

}
Expand Down
5 changes: 3 additions & 2 deletions plugins/sitemesh/src/main/resources/struts-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit dc4e403

Please sign in to comment.