struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject RE: session handling
Date Wed, 03 Dec 2008 13:26:25 GMT
--- On Wed, 12/3/08, Fogleson, Allen wrote:
> I should be more explicit. When I say I recommend avoiding
> using sessions with struts2 of course I meant I recommend
> avoiding implementing SessionAware. When Possible I try to
> do it the way I outlined using session scoped spring
> injections. (makes testing a whole lot easier too)

Only valid if you're using Spring, but even then, during testing I generally find it easier
to just set things into the session map rather than either programmatically configuring Spring
or having multiple config files to swap session objects around.

That might just be me, though.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message