Skip to content

Commit

Permalink
Merge fc2aebd into ba041e1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Jun 14, 2022
2 parents ba041e1 + fc2aebd commit fb18885
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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
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 fb18885

Please sign in to comment.