incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1096696 - /sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/DefineObjectsTag.java
Date Tue, 26 Apr 2011 08:41:41 GMT
Author: cziegeler
Date: Tue Apr 26 08:41:41 2011
New Revision: 1096696

URL: http://svn.apache.org/viewvc?rev=1096696&view=rev
Log:
SLING-2058 : DefineObjects tag should not reset page context state

Modified:
    sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/DefineObjectsTag.java

Modified: sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/DefineObjectsTag.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/DefineObjectsTag.java?rev=1096696&r1=1096695&r2=1096696&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/DefineObjectsTag.java
(original)
+++ sling/trunk/bundles/scripting/jsp-taglib/src/main/java/org/apache/sling/scripting/jsp/taglib/DefineObjectsTag.java
Tue Apr 26 08:41:41 2011
@@ -192,19 +192,6 @@ public class DefineObjectsTag extends Ta
     }
 
     private void clear() {
-
-        // remove all attributes set on the page context to cleanup
-        if (pageContext != null) {
-            pageContext.removeAttribute(requestName);
-            pageContext.removeAttribute(responseName);
-            pageContext.removeAttribute(resourceName);
-            pageContext.removeAttribute(resourceResolverName);
-            pageContext.removeAttribute(slingName);
-            pageContext.removeAttribute(logName);
-            pageContext.removeAttribute(nodeName);
-            pageContext.removeAttribute(bindingsName);
-        }
-
         // reset fields
         requestName = DEFAULT_REQUEST_NAME;
         responseName = DEFAULT_RESPONSE_NAME;



Mime
View raw message