Commits

Anonymous committed 1940598

- Removed code that's commented out
- added log (debug level) statement to print out session scoped key that's being removed

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2960573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/interceptor/ScopeInterceptor.java

                     String string = session[i];
                     if (ends) {
                         ses.remove(key + string);
+                        if (LOG.isDebugEnabled()) {
+                            LOG.debug("session scoped variable removed key=["+key+string+"]");
+                        }
                     } else {
                         Object value = stack.findValue(string);
 
+                        // Null value should be scoped too
+                        ses.put(key + string, nullConvert(value));
+
                         if (LOG.isDebugEnabled()) {
                             LOG.debug("session scoped variable saved " + string + " = " + String.valueOf(value));
                         }
-
-                        // Null value should be scoped too
-                        //if( value != null)
-                        ses.put(key + string, nullConvert(value));
                     }
                 }
             }