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 Tue, 19 Apr 2016 12:44:37 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/44ea0e63
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/44ea0e63
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/44ea0e63

Branch: refs/heads/struts-2-3-28-1
Commit: 44ea0e638365dc5cb4064e03ab85f3d14ac58503
Parents: 6267476
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Mon Apr 18 20:39:05 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Tue Apr 19 14:26:41 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/44ea0e63/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 7c3dd77..e703325 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
@@ -448,12 +448,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