Custom JSP taglib lets you sort tag's body. Tag sort treats own body as a set of
text elements with delimiters and outputs them in the lexical order. Default delimiter is just a new line symbol.
For example:
<%@ taglib uri="taglib.tld" prefix="s" %> <s:sort> <br>4. Line 4 <br>2. Line 2 <br>3. Line 3 <br>1. Line 1 </s:sort> In this case tag will produce the following output:
1. Line 1 2. Line 2 3. Line 3 4. Line 4 Tags are: sort Body tag that sorts own body. Parameters are: 1) delimiter Optional parameter. Describes a delimiter for the elements in tag's body.
Default value is \n (new line)
for downloading: Library: sorttag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|