Encode taglib ver. 1.4

    Custom JSP taglib. Lets you encode/decode data. For example:
 


<%@ taglib uri="taglib.tld" prefix="enc" %>

<enc:encode>
   Will be encoded
</enc:encode>

or you may pass data as a parameter:
 


<enc:encode data="will be encoded"/>

Tags are:

encode

Encodes data. You may set source string as a parameter data or as a body for this tag. With parameter id result will be saved in the page scope variable, without this parameter it will be just printed. Parameters are:

1) id Optional parameter. Defines a page scope variable for the result (type is java.lang.String). Without this attribute tag simply prints data.
2) cond Optional parameter. Defines a boolean value tag's behavior depends on. Default value is true (encode).

decode

Decodes data. You may set encoded string as a parameter data or as a body for this tag. With parameter id result will be saved in the page scope variable, without this parameter it will be just printed. Parameters are:

1) id Optional parameter. Defines a page scope variable for the result (type is java.lang.String). Without this attribute tag simply prints data.
2) cond Optional parameter. Defines a boolean value tag's behavior depends on. Default value is true (decode).

for downloading:

Library: enctag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: