You can use ActionContext.getContext().getSession() to get a Map that wraps the HttpSession and allows you to get/set to the Session.
For the HttpServletRequest, you can use ServletActionContext.getRequest() (which is the same as (HttpServletRequest) ActionContext.getContext().get(WebWorkStatics.HTTP_REQUEST)) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 15, 2004 6:13 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Getting HttpSession, Requests, etc > > > This may be a stupid question. I have been reading through a > couple of tutorials and examples trying to get the gist of WW2. I > realize that WW2 is really decoupled from J2EE but I am curious > as to how I can gain access to Sessions and HttpServletRequests > and the like. For example, saving a UserBean in the session for > use in other Actions and JSP's, how do I get an instance of the > HttpSession from within my Action class? > -- > Gregg Bolinger > www.embeddedthought.com > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, > CA. http://www.eclipsecon.org/osdn > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork