Class DurationTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.DurationTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to create a duration object from a time interval in seconds.
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
DurationTag
public DurationTag()
-
-
Method Details
-
setVar
Sets the request attribute name.- Parameters:
vName
- the name of the request attribute to store the data in
-
setLength
public void setLength(long sec) Sets the length of the Duration to create.- Parameters:
sec
- the length in seconds
-
doEndTag
public int doEndTag()- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
-