incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r931205 - /sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
Date Tue, 06 Apr 2010 16:05:14 GMT
Author: cziegeler
Date: Tue Apr  6 16:05:13 2010
New Revision: 931205

URL: http://svn.apache.org/viewvc?rev=931205&view=rev
Log: (empty)

Modified:
    sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java

Modified: sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java?rev=931205&r1=931204&r2=931205&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
(original)
+++ sling/trunk/bundles/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
Tue Apr  6 16:05:13 2010
@@ -158,7 +158,8 @@ public class JspScriptEngineFactory
         if ( resolver == null ) {
             resolver = scriptHelper.getScript().getScriptResource().getResourceResolver();
         }
-        ioProvider.setRequestResourceResolver(resolver);
+        final SlingIOProvider io = this.ioProvider;
+        io.setRequestResourceResolver(resolver);
         try {
             final JspServletWrapperAdapter jsp = getJspWrapperAdapter(scriptHelper);
             // create a SlingBindings object
@@ -166,7 +167,7 @@ public class JspScriptEngineFactory
             slingBindings.putAll(bindings);
             jsp.service(slingBindings);
         } finally {
-            ioProvider.resetRequestResourceResolver();
+            io.resetRequestResourceResolver();
         }
     }
 



Mime
View raw message