Hello unlex, If you are using the action bean context as a place for storing references I'd recommend you using a dependency injection framework. Guice for instance has a extension for servlet stuff and stripes-guice is a ready to use integration plugin. You can also "bind" a object in "Session Scope" which handles session keys for you. Using this technique there is no need for complex / multiple ActionBeanContext classes.
Regards, Richard On Thu, Apr 1, 2010 at 12:32 PM, unlex <dmitr...@yandex.ru> wrote: > > Hi! > As my application is growing I feel that I do need different > ActionBeanContext classes for the specific needs. > For example I have ActionBeanContext1 and ActionBeanContext2 both inherited > from ActionBeanContext. > And I want in ActionBean1 instantiate context of ActionBeanContext1 type and > in ActionBean2 of ActionBeanContext2 type. How should I do this properly? > I tried to specify it in this way: > > <init-param> > <param-name>ActionBeanContext.Class</param-name> > <param-value> > mypackage.stripes.action.ActionBeanContext1, > mypackage.stripes.action.ActionBeanContext2 > </param-value> > </init-param> > > But I get the following error after application starts: > net.sourceforge.stripes.exception.StripesServletException: Could not create > instance of ActionBean type [mypackage.stripes.action.ActionBean1]. > > If I have only one of the values, everything works fine, but I have only one > context bean. > > Am I doing something wrong? Thanks! > -- > View this message in context: > http://old.nabble.com/A-number-of-ActionBeanContext-beans.-How--tp28078477p28078477.html > Sent from the stripes-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > -- Richard Hauswald Blog: http://tnfstacc.blogspot.com/ LinkedIn: http://www.linkedin.com/in/richardhauswald Xing: http://www.xing.com/profile/Richard_Hauswald ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users