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
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
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
3 matches
Mail list logo