RE: Struts2 set data to session

2006-10-30 Thread Dave Newton
From: Dave Newton [mailto:[EMAIL PROTECTED] > From: Wesley Wannemacher [mailto:[EMAIL PROTECTED] > > There is also 'RequestAware,' but [...] note that unit testing > > your actions will become more difficult since your objects will be > > tied to a servlet environment. > Session/RequestAware implem

RE: Struts2 set data to session

2006-10-30 Thread Dave Newton
From: Wesley Wannemacher [mailto:[EMAIL PROTECTED] > There is also 'RequestAware,' but you should note that unit testing of > your actions will become more difficult since your objects will be > tied to a servlet environment. Session/RequestAware implementors supply a setter taking a java.util.Map

RE: Struts2 set data to session

2006-10-30 Thread Wesley Wannemacher
In struts2, you have to have your action implement the 'SessionAware' interface. This interface means implementing one method (void setSession( java.util.Map session)). This will/should give you access to the true session object. There is also 'RequestAware,' but you should note that unit testing