GeeCON Prague 2014*
The moose likes Servlets and the fly likes servlets/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets/JSP" Watch "servlets/JSP" New topic
Author

servlets/JSP

syam prasad
Greenhorn

Joined: May 15, 2001
Posts: 2
How can I restrict the users to access my database-table to use by only one user at a time?
*One access of my webpage on net.

shyam
vik nuckchady
Greenhorn

Joined: Apr 25, 2001
Posts: 25
I would advise you to use a static boolean variable that would act as a semaphore for the access of the table. The connected client must "grab" that variable before accessing the required code.
 
GeeCON Prague 2014
 
subject: servlets/JSP