The JSTL Formatting Tag is used for parsing the numbers, currencies and percentages.
Syntax:
fmt:parseNumber tag attributes:
Attribute | Description | Required |
value | Numeric value to read or parse. | No |
type | NUMBER, CURRENCY, PERCENT. | No |
parseLocale | Locale to use when parsing the number. | No |
integerOnly | Whether to parse to an integer (true) or floating point number (false). | No |
pattern | It specify the custom parsing pattern. | No |
timeZone | It specify the time zone of the displayed date. | No |
var | It specify the name of the variable to store the parsed number. | No |
scope | It specify the scope of the variable to store the parsed number. | No |
Example:
test.jsp
web.xml
No comments:
Post a Comment