Re: Modifying session attributes in Struts 2

2008-06-09 Thread Lukasz Lenart
Hi, I think the best solution is to implement SessionAware interface and setSession() method, then you will either add or remove values from map. Like below: public class IndexAction implements Action, SessionAware { private Map session; public void setSession(Map session) { thi

Re: Modifying session attributes in Struts 2

2008-06-09 Thread Martin
e, Wesley (WG10)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, June 09, 2008 7:16 PM Subject: RE: Modifying session attributes in Struts 2 Hmm... it doesn't seem to be working. That's why I was asking. I'll keep at it. Thanks, Wes -Origi

RE: Modifying session attributes in Struts 2

2008-06-09 Thread Gamble, Wesley (WG10)
Hmm... it doesn't seem to be working. That's why I was asking. I'll keep at it. Thanks, Wes -Original Message- From: Felipe Lorenz [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2008 6:15 PM To: Struts Users Mailing List Subject: Re: Modifying session attributes i

Re: Modifying session attributes in Struts 2

2008-06-09 Thread Felipe Lorenz
iling List > Subject: Re: Modifying session attributes in Struts 2 > > nothing diferent.. just it. > > On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> > wrote: > > > All, > > > > If I have a Struts action, and I acquire the

RE: Modifying session attributes in Struts 2

2008-06-09 Thread Gamble, Wesley (WG10)
Huh? -Original Message- From: Felipe Lorenz [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2008 5:37 PM To: Struts Users Mailing List Subject: Re: Modifying session attributes in Struts 2 nothing diferent.. just it. On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <[EM

Re: Modifying session attributes in Struts 2

2008-06-09 Thread Felipe Lorenz
nothing diferent.. just it. On Mon, Jun 9, 2008 at 7:34 PM, Gamble, Wesley (WG10) <[EMAIL PROTECTED]> wrote: > All, > > If I have a Struts action, and I acquire the session map via: > > Map session = ActionContext.getContext().getSession(); > > can I simply use > > session.put("new_ke

Modifying session attributes in Struts 2

2008-06-09 Thread Gamble, Wesley (WG10)
All, If I have a Struts action, and I acquire the session map via: Map session = ActionContext.getContext().getSession(); can I simply use session.put("new_key", new_value); to modify session attributes or do I need to do something different? Thanks, Wes --