You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by shamsnezami <md...@gmail.com> on 2007/07/08 22:10:30 UTC

Data mingling across multiple popup windows when opened almost simultaneously from the same browser instance

Multiple Popup Windows

Requirement:
•	There is a list of hyperlinks on a page and on click of each hyperlink a
popup opens. So if user clicks on 10 hyperlinks then 10 popup opens.
•	Each popup displays a distinct data based on the received parameters.
•	The data displayed in the popup is again reproduced as html and excel
report.

Current Approach:
•	On click of the hyperlink a JavaScript in turn passes the parameters to an
action class.
•	Inside this action class we collected all the data from request scope and
set them as form property because it was needed to be displayed in the popup
window. 
•	Then an expensive database trip and computation goes on which takes
normally around 1 to 2 minutes.
•	The data retrieved is set as form property.
•	Forward to the JSP.


N.B.    The form bean contains all the properties needed to be displayed on
the JSP .The scope of the form bean was set to session so that we can
display the same data as html or excel report without doing the database and
computational trip. 


Problem faced:
•	Data mingling across multiple popup windows when opened almost
simultaneously from the same browser instance.
•	The html and excel reports displayed the data of the last opened popup
window.

Please provide a solution to this problem?

-- 
View this message in context: http://www.nabble.com/Data-mingling-across-multiple-popup-windows-when-opened-almost-simultaneously-from-the-same-browser-instance-tf4045756.html#a11492269
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Data mingling across multiple popup windows when opened almost simultaneously from the same browser instance

Posted by Dave Newton <ne...@yahoo.com>.
--- shamsnezami <md...@gmail.com> wrote:
> Please provide a solution to this problem?

Don't use a session-scoped form if you're dealing with
a single session-scoped form with the same name and
hitting it with multiple requests from the same
session and not somehow serializing / synchronizing
those requests internally? It's a shared resource
across a single session (more or less).

d.



       
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org