AnnotatedClassActionResolver doesn't update context with SessionScope beans
---------------------------------------------------------------------------

         Key: STS-194
         URL: http://mc4j.org/jira/browse/STS-194
     Project: Stripes
        Type: Bug

  Components: ActionBean Dispatching  
    Versions: Release 1.3, Release 1.3.1    
    Reporter: James Stangler
 Assigned to: Tim Fennell 


AnnotatedClassActionResolver doesn't update the context in the bean when 
retrieving a bean that's already in the session.  The bean's context points to 
the wrong request object.

I resolved it on my machine with the following changes.  I don't know if 
they're correct or complete, but it prevented the errors I was having.

Change AnnotatedClassActionResolver lines 310-314 from:

                if (bean == null) {
                    bean = makeNewActionBean(beanClass, context);
                    bean.setContext(context);
                    request.getSession().setAttribute(path, bean);
                }

to:

                if (bean == null) {
                    bean = makeNewActionBean(beanClass, context);
                    request.getSession().setAttribute(path, bean);
                }
                bean.setContext(context);


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to