I think in a bad&ugly (tm) solution using cookies, but you are free to
give it a try ; )
Put a session scoped flag that says "beenthere" in the Action of your
primary form. Null by default this variable will be initialized to
something the first time the user open your Action. If the user try to
open it again the "beenthere" variable will be not null and you can
forward it to somewhere else. Hope this helps. Could post some code but
imho is quite simple.
Regards
Mauricio Garavaglia
Maya menon wrote:
I am talking about two browser windows.
User A logs in in browser A and sees DB results in results.jsp page
Then, User A open Browser B from Browser A. if he does that, he will see results in two pages, browser A and browser B. and then he will be able to do different edits from different windows. That should be prevented.
"Hartrich, James CTR USTRANSCOM J6" <[EMAIL PROTECTED]> wrote:
Are you talking about different browser "windows" or just new "tabs" in
the same browser? Perhaps try an application scoped variable that tests
the current user, allowing only one instance of the user to operate the
app.
-----Original Message-----
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 01, 2007 12:52 PM
To: user@struts.apache.org
Subject: General question
I have a struts based J2ee app which displays data from DB in the
results.jsp page. For DB data access, I use a DAO which returns a
serialized object. This serialized object, I set it to request object
using setAttribute and retrieve it using tag i n jsp page.
My question is: if users try to open another window and do
simultaneous tasks, how can I avoid same user from working in two or
more different windows in a Struts based j2ee application ?
Any thoughts..
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel
bargains.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]