Custom JSP tags library. Tag randomValue calculates an integer random value within the given interval. Two parameters are integer values describe interval. You may use this tag in two forms: 1) just prints the random value
<%@ taglib uri="taglib.tld" prefix="rand" %>
2) prints nothing, but creates a variable (type is java.lang.Integer) initialized
by the random value from the given interval. You may use this variable later in your
scriptlets:
<%@ taglib uri="taglib.tld" prefix="rand" %>
Parameter id describes a name for this variable. E.g. in the above mentioned example this name is var_name. Tag randomSequence calculates an sequence of random numbers within the given interval. Tag also creates a page (session, application) scope variable (type is java.util.ArrayList) for the calculated values. Tags are: randomValue Calculates random value from the given interval. Parameters are: 1) from describes a minimal value
randomSequence Calculates a sequence of random values from the given interval. Parameters are: 1) from describes a minimal value
for downloading: Library: random.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|