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.
Joined: Jul 21, 2004
I need to lock a record with a user in a web application. I am not using EJBs
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.