Package org.deltava.taglib.format
Class DecimalFormatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.UserSettingsTag
org.deltava.taglib.format.NumberFormatTag
org.deltava.taglib.format.DecimalFormatTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to support the rendering of formatted decimal values.
- Since:
- 1.0
- Version:
- 10.6
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.format.NumberFormatTag
_nF, _value, _zeroValue
Fields inherited from class org.deltava.taglib.format.UserSettingsTag
_user
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Prints the value, handling NaN values gracefully.void
release()
Methods inherited from class org.deltava.taglib.format.NumberFormatTag
closeSpan, doEndTag, doStartTag, getClassNameBuilder, openSpan, release, setClassName, setFmt, setForceSign, setPageContext, setValue, setZero
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
DecimalFormatTag
public DecimalFormatTag()Initializes the tag and the number formatter.
-
-
Method Details
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
printValue
Prints the value, handling NaN values gracefully.- Overrides:
printValue
in classNumberFormatTag
- Throws:
Exception
- if an I/O error occurs
-