Class DurationTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.DurationTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class DurationTag extends TagSupport
A JSP tag to create a duration object from a time interval in seconds.
Since:
10.3
Version:
10.3
Author:
Luke
See Also:
  • Constructor Details

    • DurationTag

      public DurationTag()
  • Method Details

    • setVar

      public void setVar(String vName)
      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 interface Tag
      Overrides:
      doEndTag in class TagSupport