File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


syam prasad

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.

vik nuckchady

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.
I agree. Here's the link:
subject: servlets/JSP
jQuery in Action, 3rd edition