Sequence taglib ver. 1.2

    Custom JSP tags library. Tag Sequence calculates a sequential value within the given scope. You may use this tag in two forms:

1) just prints the value
 


<%@ taglib uri="taglib.tld" prefix="s" %>
<html>
<p><i> Next value is:</i> <s:Sequence/>
</html>

2) prints nothing, but creates a variable (type is java.lang.Integer) initialized by the value. You may use this variable later in your scriptlets:
 


<%@ taglib uri="taglib.tld" prefix="s" %>
<html>
<s:Sequence id="var_name"/>
<br>Value is  <%=var_name.intValue()%>
</html>

Parameter id describes a name for this variable. E.g. in the above mentioned example this name is var_name.

Tags are:

Sequence

Calculates a sequential value within the given scope. Parameters are:

1) init describes an initial value. Default value is 1
2) scope Optional parameter. Describes a scope for the sequence. Possible values are page, request, session or application. Default value is application.
3) id Optional parameter describes a page scope variable for data (type is java.lang.Integer). Without this parameter tag just prints data.
4) step Optional parameter describes a step (increment). Default value is 1.

for downloading:

 Library: sequencetag.jar     Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: