Revision: 613
          http://stripes.svn.sourceforge.net/stripes/?rev=613&view=rev
Author:   bengunter
Date:     2007-10-09 16:03:31 -0700 (Tue, 09 Oct 2007)

Log Message:
-----------
Fixed STS-423: Form population fails with clean URLs. ActionBean instances are 
now bound to the path without the embedded parameters.

Modified Paths:
--------------
    
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
      2007-10-09 15:02:58 UTC (rev 612)
+++ 
trunk/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
      2007-10-09 23:03:31 UTC (rev 613)
@@ -296,25 +296,26 @@
                     path, UrlBindingFactory.getInstance().getPathMap());
         }
 
+        String bindingPath = getUrlBinding(beanClass);
         try {
             HttpServletRequest request = context.getRequest();
 
             if (beanClass.isAnnotationPresent(SessionScope.class)) {
-                bean = (ActionBean) request.getSession().getAttribute(path);
+                bean = (ActionBean) 
request.getSession().getAttribute(bindingPath);
 
                 if (bean == null) {
                     bean = makeNewActionBean(beanClass, context);
-                    request.getSession().setAttribute(path, bean);
+                    request.getSession().setAttribute(bindingPath, bean);
                 }
 
                 bean.setContext(context);
             }
             else {
-                bean = (ActionBean) request.getAttribute(path);
+                bean = (ActionBean) request.getAttribute(bindingPath);
                 if (bean == null) {
                     bean = makeNewActionBean(beanClass, context);
                     bean.setContext(context);
-                    request.setAttribute(path, bean);
+                    request.setAttribute(bindingPath, bean);
                 }
             }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to