From fc2aebd10afcf6201572b209fe94a16fadbecac8 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Tue, 14 Jun 2022 13:17:19 +0200 Subject: [PATCH] WW-5187 Comments out Velocity based PageFilter --- .../java/org/apache/struts2/sitemesh/VelocityPageFilter.java | 2 +- plugins/sitemesh/src/main/resources/struts-plugin.xml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityPageFilter.java b/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityPageFilter.java index a57c8ed47..22de2c60a 100644 --- a/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityPageFilter.java +++ b/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/VelocityPageFilter.java @@ -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()); } } diff --git a/plugins/sitemesh/src/main/resources/struts-plugin.xml b/plugins/sitemesh/src/main/resources/struts-plugin.xml index c5fcd5d88..406a73a0f 100644 --- a/plugins/sitemesh/src/main/resources/struts-plugin.xml +++ b/plugins/sitemesh/src/main/resources/struts-plugin.xml @@ -22,8 +22,9 @@ - + - + +