Base64 taglib ver. 1.2

    Custom JSP taglib. Lets you encode/decode data with base64 encoding. 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
2) data Optional parameter. Defines a data for encoding
3) file Optional parameter. Defines a file for encoding

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
2) data Optional parameter. Defines a data for decoding

for downloading:

Library: base64tag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: