struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [5/7] struts git commit: Drops defining location via request
Date Wed, 04 May 2016 07:20:54 GMT
Drops defining location via request


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/6bd694b7
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/6bd694b7
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/6bd694b7

Branch: refs/heads/master
Commit: 6bd694b7980494c12d49ca1bf39f12aec3e03e2f
Parents: c9c2137
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Mon Apr 18 20:39:05 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Wed May 4 09:19:18 2016 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/struts2/views/xslt/XSLTResult.java   | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/6bd694b7/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java b/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
index 5ebbf67..5dfd5fb 100644
--- a/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
+++ b/core/src/main/java/org/apache/struts2/views/xslt/XSLTResult.java
@@ -404,12 +404,7 @@ public class XSLTResult implements Result {
                 ServletActionContext.getServletContext());
     }
 
-    protected Templates getTemplates(String path) throws TransformerException, IOException
{
-        String pathFromRequest = ServletActionContext.getRequest().getParameter("xslt.location");
-
-        if (pathFromRequest != null)
-            path = pathFromRequest;
-
+    protected Templates getTemplates(final String path) throws TransformerException, IOException
{
         if (path == null)
             throw new TransformerException("Stylesheet path is null");
 


Mime
View raw message