RE: session handling

2008-12-03 Thread dusty
+1 on SessionAware. It doesn't get much easier than: public void setSession(Map stringObjectMap) { } to mock for testing. Session use as a design pattern is a different issue. Struts2's conversion and parameter handling makes it pretty easy to make each transaction as stateless as poss

RE: session handling

2008-12-03 Thread Dave Newton
--- On Wed, 12/3/08, Fogleson, Allen wrote: > IMHO - I don't like tying myself down to Sessions. Hmm, I guess my opinion is that in S2's case you're really only tied to a Map, but I understand where you're coming from. Dave -

RE: session handling

2008-12-03 Thread Fogleson, Allen
, December 03, 2008 8:26 AM To: Struts Users Mailing List Subject: RE: session handling --- On Wed, 12/3/08, Fogleson, Allen wrote: > I should be more explicit. When I say I recommend avoiding > using sessions with struts2 of course I meant I recommend > avoiding implementing SessionAware. When P

RE: session handling

2008-12-03 Thread Fogleson, Allen
AIL PROTECTED] Sent: Wednesday, December 03, 2008 8:19 AM To: Struts Users Mailing List Subject: RE: session handling --- On Wed, 12/3/08, Fogleson, Allen wrote: > In the case of using Sessions with Struts2 - by the way I > would recommend avoidin

RE: session handling

2008-12-03 Thread Dave Newton
--- On Wed, 12/3/08, Fogleson, Allen wrote: > I should be more explicit. When I say I recommend avoiding > using sessions with struts2 of course I meant I recommend > avoiding implementing SessionAware. When Possible I try to > do it the way I outlined using session scoped spring > injections. (mak

RE: session handling

2008-12-03 Thread Dave Newton
--- On Wed, 12/3/08, Fogleson, Allen wrote: > In the case of using Sessions with Struts2 - by the way I > would recommend avoiding this - [...] Why? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

RE: session handling

2008-12-03 Thread Fogleson, Allen
I should be more explicit. When I say I recommend avoiding using sessions with struts2 of course I meant I recommend avoiding implementing SessionAware. When Possible I try to do it the way I outlined using session scoped spring injections. (makes testing a whole lot easier too) Al -

RE: session handling

2008-12-03 Thread Fogleson, Allen
Hmm, I'm not sure I understand the question at all. 1) What version of struts are you in? Since you are referring to needing to understand how to use Sessions I assume struts 2, since struts 1 would be obvious, the action class has a request object you can get the session from. 2) What do you

Re: session handling

2008-12-03 Thread Dave Newton
--- On Wed, 12/3/08, mthalis wrote: > I'm developping a web based application using struts. There, i need to > handle sessions and other relevant stuff. can somebody plz let me > know all about this with essential examples. I was googling and still > unable to find relavant solution. since im not

Re: Session handling in Struts

2005-02-08 Thread Mark Lowe
Are you links being encoded? or Mark On Tue, 08 Feb 2005 15:23:52 +0530, Rajesh <[EMAIL PROTECTED]> wrote: > Hi: > > I haired that struts by default supports session handling. > > when i tried to disable in cookies in my browser and try to access my > site which is a shopping site the sit