Custom JSP tag. Lets you iterate execution over the random subset of collections, iterators,
enumerations or arrays. For example:
<%@ taglib uri="taglib.tld" prefix="loop" %> <%
<loop:randomIterate source="<%=v%>" id="A" count="5">
Here tag executes own body for the 5 random elements from the source. Also you can provide a name for the attribute in page (request, session, application) scope that will be used as a source data for the iteration. Tags are: randomIterate Iterates over the given source. Parameters are: 1) source Optional parameter. Describes a collection, iterator, enumeration or array
for downloading: Library: randomizetag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|