And you get the HttpSession object from the request in your action like this: HttpSession session = req.getSession(); // where req is the HttpServletRequest passed into the "execute" method
On Tue, 2005-11-29 at 10:21 -0500, Srinivas Jadcharla wrote: > You can use HttpSession Object..In that you have setAttribute("") and > getAttribute("") mthods. > > On 11/29/05, Sony Thomas <[EMAIL PROTECTED]> wrote: > > > > Hi Stephen, > > > > What I want to know is suppose I have to store some value to session. Is > > there is something called Session object in struts. how can I set the > > value from jsp and how can I retrieve that value in action from session > > object. My problem is that i have to set the value to the session and I > > have to keep that value for quiet a long time. I will be using that > > value in different actions. so how can i set the value to the session > > which should be persistent for long time > > > > thanks Stephen for the reply > > > > sony > > > > >> > > >> > > > > > > > > > > > > > > >___________________________________________________________ > > >How much free photo storage do you get? Store your holiday > > >snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks & Regards > > Srinivas > 732-648-9421(Cell) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]