Custom JSP tags library lets you deal with Base 36 encoding. Base 36 is a positional numeral
system using 36 as the radix. The choice of 36 is convenient in that the digits can be
represented using the Arabic numerals 0-9 and the Latin letters A-Z. The typical usage is service
that shortens long numbers (e.g. for URL shortening service). You can convert long ID into short version with Base 36. E.g.:
decimal 100 is 2S in Base 36, 1000 is RS, 10000 is 7PS etc.
<%@ taglib uri="taglib.tld" prefix="s" %> <s:Base36Encode>1234567</s:Base36Encode> Tags are: Base36Encode Body tag lets you encode value with Base 36. Attributes are: 1) id Optional attribute. Describes a page scope variable (type is java.lang.String) for the converted value. Without this attribute tag just prints data. Base36Decode Body tag lets you decode Base 36 value. Attributes are: 1) id Optional attribute. Describes a page scope variable (type is java.lang.String) for the converted value. Without this attribute tag just prints data. for downloading: Library: base36tag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|