Embed image taglib ver. 1.2


    Custom JSP tag. Lets you embed base64-encoded image in HTML code. Tag eimg mimics HTML img but embeds image in a webpage using data: scheme. It is so called Data URI scheme, which is a way of including static data items in-line on a web page.
 


<%@ taglib uri="taglib.tld" prefix="i" %>
<html>
...
<i:eimg src="/mydata/image.jpg"/>
...
</html>

Tags are:

eimg

Custom tag embeds base64-encoded image data. Parameters are:

1) src Describes a source URL.
2) title Optional parameter. Describes a title (tooltip).
3) className Optional parameter. Describes a CSS class.
4) style Optional parameter. Describes a CSS style.
5) width Optional parameter. Describes a width.
6) height Optional parameter. Describes a height.
7) border Optional parameter. Describes a border.
7) alt Optional parameter. Describes an alt attribute.
8) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (create a tag).

for downloading:

Library: eimgtag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: