JSTL fmt
Tag formatNumber


Formats a numeric value as a number, currency, or percentage


Tag Information
Tag Classorg.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
valuefalsetruejava.lang.String Numeric value to be formatted.
typefalsetruejava.lang.String Specifies whether the value is to be formatted as number, currency, or percentage.
patternfalsetruejava.lang.String Custom formatting pattern.
currencyCodefalsetruejava.lang.String ISO 4217 currency code. Applied only when formatting currencies (i.e. if type is equal to "currency"); ignored otherwise.
currencySymbolfalsetruejava.lang.String Currency symbol. Applied only when formatting currencies (i.e. if type is equal to "currency"); ignored otherwise.
groupingUsedfalsetruejava.lang.String Specifies whether the formatted output will contain any grouping separators.
maxIntegerDigitsfalsetruejava.lang.String Maximum number of digits in the integer portion of the formatted output.
minIntegerDigitsfalsetruejava.lang.String Minimum number of digits in the integer portion of the formatted output.
maxFractionDigitsfalsetruejava.lang.String Maximum number of digits in the fractional portion of the formatted output.
minFractionDigitsfalsetruejava.lang.String Minimum number of digits in the fractional portion of the formatted output.
varfalsefalsejava.lang.String Name of the exported scoped variable which stores the formatted result as a String.
scopefalsefalsejava.lang.String Scope of var.

Variables
No Variables Defined.


Output Generated by TLDDoc. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.