with SessionAware, you have to implement:

 void 
*setSession<http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/interceptor/SessionAware.html#setSession%28java.util.Map%29>
*(Map <http://java.sun.com/j2se/1.5.0/docs/api/java/util/Map.html> session)

so during testing you can easily set it with HashMap. that way you can test
your action independent of the servlet container.
I believe I read this somewhere in the doco.

Cheers,

WiB.

On 3/14/07, Dave Newton <[EMAIL PROTECTED]> wrote:

--- Roger Varley wrote:
> What is the recommended Struts 2 way of doing this?

If you really need to share an object between actions
I'm not how else you'd do it.

It has also been noted that technically you aren't
being tied to servlet by implementing that interface,
although at one point you may have been.

d.





____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Best regards,


WiB
-------------------

Reply via email to