Refresh image taglib ver. 1.1

    Custom JSP taglib - widget for image files. Tag RefreshImg mimics HTML img tag and lets you output the constantly refreshed images. For example you can show webcams in your web-applications or some like that.

E.g., the following code shows a webcam in Moscow,Russia:

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

<r:RefreshImg src="" timeout="120"/>

and you will get some like this:

You can provide a name for JavaScript timer as an attribute for this tag and stop updates later with JavaScript clearTimeout() call.

Tags are:


Tag outputs constantly refreshed image. Attributes are:

1) src describes an URL for the image
2) timeout Optional attribute. Describes a refresh timeout (interval) in seconds. Default value is 60 (once per minute).
3) className Optional attribute. Describes a CSS class for you image
4) style Optional attribute. Describes a CSS style for your image.
5) border Optional attribute. Describes a border for your image.
6) alt Optional attribute. Describes an alternate text for your image.
7) timerId Optional attribute. Describes a name for the timer (a name for JavaScript variable).
8) expand Optional attribute. Possible values are true or false. If this value is true tag will generate a hyperlink for the full image view too. Default value is false.

for downloading:

Library: refreshimgtag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: