Re: Struts 2 session problem

2009-01-21 Thread musomesa
To: user@struts.apache.org Sent: Mon, 19 Jan 2009 3:39 pm Subject: Re: Struts 2 session problem Yes, SEAM does: http://www.seamframework.org/Documentation/DoesSeamSupportMultipleBrowserWindowsOrTabs I haven't dug into exactly how they do it but I would not be surprised if they pass

Re: Struts 2 session problem

2009-01-20 Thread Dave Newton
dusty wrote: Good luck with SEAM. And good luck to us incorporating some of its features--SEAM has a lot going for it. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user

Re: Struts 2 session problem

2009-01-20 Thread dusty
more >> http://www.manning.com/wannemacher >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@strut

Re: Struts 2 session problem

2009-01-20 Thread RajibJana
etc. *expecting* them to be within the same > "conversation". > > -Dale > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www

Re: Struts 2 session problem

2009-01-19 Thread RajibJana
tional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p21558037.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Struts 2 session problem

2009-01-19 Thread RajibJana
tional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p21558029.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Struts 2 session problem

2009-01-19 Thread Dale Newfield
andrh...@hotmail.com wrote I agree with ya. I have been doing something very similar with hidden fields in my app for some time. If every request in your app is a POST, or if every link in your app is javascript that causes a POST, that's fine. I like using actual links, though, which resul

Re: Struts 2 session problem

2009-01-19 Thread Wes Wannemacher
On Tuesday 20 January 2009 00:01:22 RajibJana wrote: > Can I expect this feature in future version of S2? It will help the S2 > developers immensely, I bet. > > Thanks > Patches are always welcome! -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring,

RE: Struts 2 session problem

2009-01-19 Thread RajibJana
gt;> Date: Mon, 19 Jan 2009 12:39:30 -0800 >> From: glindh...@yahoo.com >> To: user@struts.apache.org >> Subject: Re: Struts 2 session problem >> >> >> Yes, SEAM does: >> >> http://www.seamframework.org/Documentation/DoesSeamSupportMultipleB

Re: Struts 2 session problem

2009-01-19 Thread dusty
each has a "conversation" scope. >>>> So where most frameworks would drop stuff into session and the tabs >>>> would overwrite each others data, Seam doesn't. (It may still use >>>> session tied to a tab-specific key; I don't know the mechanism yet.

RE: Struts 2 session problem

2009-01-19 Thread Martin Gainty
: user@struts.apache.org > Subject: RE: Struts 2 session problem > Date: Mon, 19 Jan 2009 17:07:13 -0600 > > > I agree with ya. I have been doing something very similar with hidden fields > in my app for some time. The server knows if a new browser instance is > requested b

RE: Struts 2 session problem

2009-01-19 Thread Andy
based on keys. At the end of the day a servlet container creates a single session for a single workstation. > Date: Mon, 19 Jan 2009 12:39:30 -0800 > From: glindh...@yahoo.com > To: user@struts.apache.org > Subject: Re: Struts 2 session problem > > > Yes,

Re: Struts 2 session problem

2009-01-19 Thread Greg Lindholm
;> > to call it a limitation, I for one think this is the correct thing to >> do, >> > and since even IE8 starts doing this looks like it is. >> > >> > The solution for FF is to use profiles. Just google for 'Firefox >> multiple >> > sessions. >&g

Re: Struts 2 session problem

2009-01-19 Thread Jim Kiley
e it is. > > > > The solution for FF is to use profiles. Just google for 'Firefox multiple > > sessions. > > > > -Original Message- > > From: Greg Lindholm [mailto:glindh...@yahoo.com] > > Sent: January 19, 2009 2:19 PM > > To: user@stru

RE: Struts 2 session problem

2009-01-19 Thread Greg Lindholm
s to use profiles. Just google for 'Firefox multiple > sessions. > > -Original Message- > From: Greg Lindholm [mailto:glindh...@yahoo.com] > Sent: January 19, 2009 2:19 PM > To: user@struts.apache.org > Subject: Re: Struts 2 session problem > > > +1 > > I f

RE: Struts 2 session problem

2009-01-19 Thread Radu Solomon
From: Greg Lindholm [mailto:glindh...@yahoo.com] Sent: January 19, 2009 2:19 PM To: user@struts.apache.org Subject: Re: Struts 2 session problem +1 I find I need this all the time when developing; I want to login as 2 different users and test multi-user interactions. Currently I'm force

Re: Struts 2 session problem

2009-01-19 Thread Greg Lindholm
--- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p21549675.html Sent

Re: Struts 2 session problem

2009-01-19 Thread Dave Newton
dusty wrote: Creating a separate subsystem on the server to partition a single HTTP session for multiple users and maintain the conversation is classic overengineering. Seems like Seam has gone to a lot of trouble to provide just another way to persist state. It's not "over-engineering" to al

Re: Struts 2 session problem

2009-01-19 Thread stanlick
(It may still use > >> session tied to a tab-specific key; I don't know the mechanism yet.) > >> > >> Dave > >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr..

Re: Struts 2 session problem

2009-01-19 Thread RajibJana
t;session" states. >>>> >>>> I could, say, have two tabs open, but each has a "conversation" scope. >>>> So where most frameworks would drop stuff into session and the tabs >>>> would overwrite each others data, Seam doesn't. (

Re: Struts 2 session problem

2009-01-18 Thread RajibJana
open, but each has a "conversation" scope. >>> So where most frameworks would drop stuff into session and the tabs >>> would overwrite each others data, Seam doesn't. (It may still use >>> session tied to a tab-specific key; I don't know the mechanism yet.) >>> >>> Dave >>> >>> >>&

Re: Struts 2 session problem

2009-01-18 Thread dusty
---- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p2153720

Re: Struts 2 session problem

2009-01-18 Thread RajibJana
> For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p21536971.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Struts 2 session problem

2009-01-18 Thread Struts Two
>option 2 and 3 are overheads for a large app This is an overstatment. The real question is whether This overhead causes major [performance, etc] problems for THE app , u are working on [not any large app], or not. And that is the question which you can only answer. regards, RajibJana wro

Re: Struts 2 session problem

2009-01-18 Thread Nils-Helge Garli Hegvik
I'm guessing conversations are just different "partitions" in the session. At least that's how I've seen it implemented before. And I don't see how that would "support" having multiple _users_ in the same session. Sure, you could probably emulate it in some way, but I have serious doubts if it woul

Re: Struts 2 session problem

2009-01-18 Thread Wes Wannemacher
On Sunday 18 January 2009 12:11:33 Dave Newton wrote: > > Check out the Seam conversation stuff. > > It allows the same user (or, I suppose, two different users, but that's > not its primary purpose) to have multiple "session" states. > > I could, say, have two tabs open, but each has a "conversati

Re: Struts 2 session problem

2009-01-18 Thread Dave Newton
Wes Wannemacher wrote: Two users are not going to share the same session. Each user will get a new session. That's how app servers work. Check out the Seam conversation stuff. It allows the same user (or, I suppose, two different users, but that's not its primary purpose) to have multiple "s

Re: Struts 2 session problem

2009-01-18 Thread RajibJana
>>> >>>>>> >>>>>> newton.dave wrote: >>>>>>> >>>>>>> Dale Newfield wrote: >>>>>>>> One running browser instance shares session across all windows. >>>>>

Re: Struts 2 session problem

2009-01-18 Thread Wes Wannemacher
On Sunday 18 January 2009 02:54:35 RajibJana wrote: > By conversation, I want to mean http session independent conversation. So > two simultaneous users sharing the same http session can work > independently, storing/retriving their own properties throughout the > application without having conflic

Re: Struts 2 session problem

2009-01-18 Thread Nils-Helge Garli Hegvik
m one >>>>>>> machine. >>>>>> >>>>>> The OP wants a SEAM-like solution, but S2 doesn't have that >>>>>> functionality built-in (nor do most other frameworks, AFAIK). >&g

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
;>>> The OP wants a SEAM-like solution, but S2 doesn't have that >>>>> functionality built-in (nor do most other frameworks, AFAIK). >>>>> >>>>> It *would* be a nice feature to add, though. >>>>> >>>>>>> 2) If one opens two window instances ( not tabbed one), logs into >>

Re: Struts 2 session problem

2009-01-17 Thread Nils-Helge Garli Hegvik
>>>> I can never remember which is which, but IIRC IE (pre-6, don't remember >>>> after that) would give different sessions per-window, FF wouldn't. In >>>> any case, I agree that it's a bad idea to rely on browser behavior >>>> (unless you're cont

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
I can never remember which is which, but IIRC IE (pre-6, don't remember >>> after that) would give different sessions per-window, FF wouldn't. In >>> any case, I agree that it's a bad idea to rely on browser behavior >>> (unless you're controlling browser deployment, but I don't like that >>>

Re: Struts 2 session problem

2009-01-17 Thread dusty
>> any case, I agree that it's a bad idea to rely on browser behavior >> (unless you're controlling browser deployment, but I don't like that >> much either :) >> >> Dave >> >> >> ----------------- >> To unsubscribe, e-m

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
; > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in contex

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
two browser tabs open the application login page. > ----------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
tion breaks. >> 3) If the user opens a new browser instance, then a new >> session is created >> and both the windows have their own user id info( i.e. >> userid doesnt >> override) >> >> I tried the scope interceptor ( by starting a conversion), >&g

Re: Struts 2 session problem

2009-01-17 Thread Dave Newton
Dale Newfield wrote: One running browser instance shares session across all windows. Using Safari and Firefox in tandem will allow two sessions from one machine. The OP wants a SEAM-like solution, but S2 doesn't have that functionality built-in (nor do most other frameworks, AFAIK). It *wo

Re: Struts 2 session problem

2009-01-17 Thread Dale Newfield
RajibJana wrote: 1) if one opens a window and a tabbed window, logs into the application by giving different user id and password combinations, then two seperate sessions are not created. As a result, in the session map userid overrides each other and same user id ( last logged in user ) is shown

Re: Struts 2 session problem

2009-01-17 Thread Struts Two
17/09, RajibJana wrote: > From: RajibJana > Subject: Struts 2 session problem > To: user@struts.apache.org > Received: Saturday, January 17, 2009, 5:23 AM > Hi All, > > I am using struts 2.0.14 to build an enterprise > application. It uses spring, > hibernate, tile

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-2-session-problem-tp21513305p21517802.html Sen

Re: Struts 2 session problem

2009-01-17 Thread Dave Newton
Deepak Kumar wrote: Please check http://www.roseindia.net/struts/struts2/struts2-login.shtml I don't see how that addresses the issue at all; perhaps you could explain further? Thanks, Dave - To unsubscribe, e-mail: user-u

RE: Struts 2 session problem

2009-01-17 Thread Deepak Kumar
Please check http://www.roseindia.net/struts/struts2/struts2-login.shtml Thanks -Original Message- From: RajibJana [mailto:rajibj...@gmail.com] Sent: Saturday, January 17, 2009 4:35 PM To: user@struts.apache.org Subject: Re: Struts 2 session problem Seems to me S2 can not give better

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
; >> > each >> >> > request URL. This is a very bad way to do it because it will be easy >> to >> >> > hijack >> >> > a session. Especially in cases where the user is clicking a link and >> >> the >> >> > ke

Re: Struts 2 session problem

2009-01-17 Thread abhishek reddy
es where the user is clicking a link and > >> the > >> > key > >> > will be visible in the GET request. > >> > > >> > I would consider whether your requirement is a development-time > >> > requirement... > >> > Meaning, is this something you need for testing your a

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
users will need? If it is something that the users need, consider >> re- >> > factoring before you hide key fields as I suggest above. If this is >> > something >> > you need for testing and development, then try to find a browser plugin >> > that >>

Re: Struts 2 session problem

2009-01-17 Thread abhishek reddy
ntrol over your cookies so that you can > control > > the > > sessions while you work. > > > > -Wes > > > > -- > > > > Wes Wannemacher > > Author - Struts 2 In Practice > > Includes coverage of Struts 2.1, Spring,

Re: Struts 2 session problem

2009-01-17 Thread RajibJana
while you work. > > -Wes > > -- > > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > > > -------------

Re: Struts 2 session problem

2009-01-16 Thread Wes Wannemacher
On Saturday 17 January 2009 00:23:49 RajibJana wrote: > > 1) A User opens a browser window( IE 7/Firfox) and logs in the application > as User X and the application shows the logged in userid as X and DB > transactions also get userid info as X. > 2) The same user opens a bowser tab or new window f

Struts 2 session problem

2009-01-16 Thread RajibJana
( by starting a conversion), but the result is same( i.e. could not get new session in a window tab). I searched for a solution, could not get a solution. Please suggest how to get rid of this problem. Thanks Rajib -- View this message in context: http://www.nabble.com/Struts-2-session