On Thu, Apr 7, 2011 at 9:25 AM, Massimo Ugues wrote:
> > I want to access session objects in a class other than Action.
> You have to pass the ServletRequest object or the Session object
> to the instance of that class.

Please don't.

Doing so ties the dependent classes to either Struts or the Servlet
spec, a dependency that is rarely required, and almost *never* a good
idea. Pass a business object, a map, or whatever instead.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to