This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Transaction Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Transaction Problem" Watch "Transaction Problem" New topic
Author

Transaction Problem

Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
Hi All,

Thanks for giving suggestions,

I dont know whether this forum is right forum for this question. May be this question design related.

I have a problem i have a jsp which is displaying list of records as hyperlinks, Each hyperlink displays all the data related to the record in a popup window, Now i need to let only one user to view the popup window at a time, if one user is viewing the record i should not allow any other to view the same record instead need to display a message that the record is already viewed by another user.

Any suggestions will be appreciated.

Thanks,
Srilakshmi
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
More Information:

I need to lock a record with a user in a web application.
I am not using EJBs
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
I am waiting :-(
Ram kovis
Ranch Hand

Joined: Jun 23, 2005
Posts: 130
keep some flag in applicaiton context and chnage it accrondingly when you open the window and close the window.

for every user, first get this flag from applcation context, and verify it.
If "windowOpenedFlag="Y", then do not allow that user. else open the window. When the user closes the window, set the Flag value to "N" or space.

HTH
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
Thanks Ram, Any other solutions please...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transaction Problem