cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r1066740 - /cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/util/ServletServiceUtils.java
Date Thu, 03 Feb 2011 07:34:50 GMT
Author: reinhard
Date: Thu Feb  3 07:34:49 2011
New Revision: 1066740

URL: http://svn.apache.org/viewvc?rev=1066740&view=rev
Log:
pass forgotten query parameter

Modified:
    cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/util/ServletServiceUtils.java

Modified: cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/util/ServletServiceUtils.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/util/ServletServiceUtils.java?rev=1066740&r1=1066739&r2=1066740&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/util/ServletServiceUtils.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-servlet/src/main/java/org/apache/cocoon/servlet/util/ServletServiceUtils.java
Thu Feb  3 07:34:49 2011
@@ -51,8 +51,9 @@ public class ServletServiceUtils {
      * @throws ServletServiceException If any problem occurs, this unchecked exception is
thrown.
      */
     public static InputStream getServletServiceResource(Servlet servlet, String resourcePath,
String query) {
-        if (resourcePath.length() > 0 && !resourcePath.startsWith("/")) {
-            resourcePath = "/" + resourcePath;
+        String resultResourcePath = resourcePath;
+        if (resultResourcePath.length() > 0 && !resultResourcePath.startsWith("/"))
{
+            resultResourcePath = "/" + resultResourcePath;
         }
 
         Absolutizable a;
@@ -63,7 +64,7 @@ public class ServletServiceUtils {
                     + Absolutizable.class.getName() + ".", cce);
         }
 
-        AbsoluteServletConnection sc = new AbsoluteServletConnection(a.getServiceName(),
resourcePath, null);
+        AbsoluteServletConnection sc = new AbsoluteServletConnection(a.getServiceName(),
resultResourcePath, query);
         try {
             return sc.getInputStream();
         } catch (IOException e) {



Mime
View raw message