Duration taglib ver. 1.1

    Custom JSP taglib lets you display duration in milliseconds in the human readable form hours:minutes:seconds. For example:
 


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

<d:duration id="A">1234567</d:duration>

Time is: <%=A%>

<d:duration value="123456"/>

Tags are:

duration

Body tag lets you display duration in milliseconds in hours:minutes:seconds form. Parameters are:

1) value Optional parameter. Presents a value in milliseconds
2) id Optional parameter. Describes a name for the page scope variable (type is java.lang.String) that will keep a result. Without this parameter tag simply prints data.

for downloading:

Library: durationtag.jar    Description: taglib.tld

© Coldbeans      Comments?

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