Live taglib ver. 1.4

    Custom JSP tag. Lets you calculate a number of active sessions. So you may provide for you application/portal some service like "How many users are online?" for example. One tag getLive does the job. Tag increases an application level counter if session is new and prints this value. Counter will be decreased automatically when session is invalidated. Just add this tag to the starting (or login etc.) page. For example:

<%@ taglib uri="taglib.tld" prefix="live" %>

<live:getLive />

You may save this value in a page scope variable (type is String) and print/do not print it later:

<live:getLive id="A"/>
<%=A%> users online

Tags are:


increases counter (if session is new) and retrieves/prints its value. Parameters are:

1) id Optional parameter. Describes a name for the page scope variable with data. Without this parameter tag just prints a current value.

for downloading:

Library: livetag.jar    Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: