Custom JSP taglib. This taglib lets you obtain width and height for image file. For example:
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
See also Coldtags suite - the largest collection of custom JSP tags.