Image info taglib ver. 1.2


    Custom JSP taglib. This taglib lets you obtain width and height for image file. For example:
 


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

<i:ImageHeight src="http://server/open.gif"/>

<i:ImageWidth id="A">/cj/open.gif</i:ImageWidth>
Width is <%=A%>

Tags are:

ImageWidth

Body tag. Lets you obtain a width for image file. Parameters are:

1) src Optional parameter. Describes an image file or URL. By default tag will use body content as image path definition.
2) id Optional parameter. Describes a page scope variable for data (type is java.lang.Integer). Without this parameter tag just prints data.

ImageHeight

Body tag. Lets you obtain a height for image file. Parameters are:

1) src Optional parameter. Describes an image file or URL. By default tag will use body content as image path definition.
2) id Optional parameter. Describes a page scope variable for data (type is java.lang.Integer). Without this parameter tag just prints data.

for downloading:

Library: imageinfotag.jar    Description: taglib.tld  

© Coldbeans      Comments?

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

Also in Coldtags: