Another thing: look at how AnnotatedActionResolver behaves when dealing with stateful actions from session. Try to see if you are missing something.
Regards Søren Den 29/09/2010 kl. 06.40 skrev Simon Keen <si...@allysystems.com>: > > I have a 2 page solution to a problem but the 2nd page is used by several > beans to solve a similar problem. Also the beans have a lot of information > with them and are used rarely in this 2 page way.So on the 1st page when a > user clicks a button to go to the 2nd page I save the bean in the session. > That all works fine. On return from the 2nd page I have built an > ActionResolver that inherits from NamedActionResolver and overrides the > getActionBean(ActionBeanContext context, String path) method. If it finds a > reference to a dummy bean (SavedActionBean) it extracts the real one form > the session and returns that instead. > > This all works fine. The right bean is extracted etc. However, a strange > thing occurs in the jsp. Anywhere I use a jsp expression, e.g. > ${actionBean.job.title}, it all works fine. But all the stripes tags, e.g. > <s:text name="job.title".../>, don't work. They are all empty and it is as > if they do not have a bean to extract information from. If I enable debug > tracing on stripes and the relevant classes the values are never extracted > by the page. If I change the fields so they use the tag body, e.g. <s:text > name="job.title"...>${actionBean.job.title}</>, then everything is fine. > > I really don't want to change all the pages. I have tried overriding most of > the methods in NamedActionResolver to see what is going on but can't work it > out. > > Can anyone help please? > > Many Thanks > > Simon Keen > -- > View this message in context: > http://old.nabble.com/Problems-when-saving-action-bean-in-session-tp29835227p29835227.html > Sent from the stripes-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users