Parameters are the way you'll get data mapped to your action bean's setters, but if you need to access the session data, you can do that before you call runActionError():
HashMap session = new HashMap(); session.put(...); ActionContext.setSession(session); runActionError(); Then your actual action can access the session via ActionContext.getSession(). -Pat ----- Original Message ----- From: "Simon Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 10:21 AM Subject: Re: [OS-webwork] Two classes to ease development > On Monday, Oct 28, 2002, at 17:40 Europe/London, Patrick Lightbody > wrote: > > > Yup, GenericDispatcher was specifically designed for this situation > > (well, > > and others). > > I'll have a proper look at this tonight, but it seems that the only way > that I can currently get data into an Action is using "params" that is > used to set the parameters. How do I deal with the case where I store > some data in the Session? At a quick glance through the code, it only > deals with actions that are/were ParameterAware (if you see what I > mean) Time to extend the AbstractActionTest with all the bits that are > "missing" :) > > Although this feels a bit "heavier" than the solution offered by > XAwareActionFactoryProxy, I'll try writing tests using both methods and > see which I prefer. It's probably just a case of Not Invented Here > *shrugs* The only other thing that comes to mind is that by > implementing *Aware interfaces an Action makes obvious and explicit > what it's expecting, and where, which might be handy if anyone else but > myself has to look at this code (esp. given my commenting habits) I'll > have a scan of the archives for why they've been deprecated. > > Regards, > > Simon > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork