Its the same in struts as in servlets! The execute method of Action is passes an HttpServletRequest.
Daniel. > -----Original Message----- > From: Milson Fredy Cardona Echeverri [mailto:[EMAIL PROTECTED] > Sent: 11 November 2004 17:26 > To: [EMAIL PROTECTED] > Subject: session variable in struts > > > hi friends > > i want to declare a session variable in an action class. > > I could to solve it in a servlet class : > HttpSession session = request.getSession(); > session.setAttribute("variable name","value"); > > but in struts ¿how do i do it? > > thanks in advance > > _________________________________________________________________ > Charla con tus amigos en línea mediante MSN Messenger: > http://messenger.latam.msn.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]