Custom JSP tag. Lets you synchronize (serialize) execution for tag's body. Tag's attribute describes some semaphore. You may have of course more than one semaphore for your application. For example, this code implements some counter on the application level.
Access to this counter (increment) will be serialized:
<%@ taglib uri="taglib.tld" prefix="set" %> <set:lock semaphore="A">
So this tag lets you organize access to shared data. .NET users may conclude that this tag extends application.lock and application.unlock operators in ASP.NET. Tags are: lock Body tag. Executes own body in the synchronized mode. Parameters are: 1) semaphore name for semaphore
for downloading: Library: locktag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|