JSP CUSTOM TAG LIBRARIES
format tag
Formats a value. You can pass in a value to format or format the tag body. You can also provide an id name to save the formatted body or value as a variable.
Contexts
Valid in:
Any context
Syntax
<domutil:format
id="variable name"
format="formatting style to apply to string"
locale="<languageCode>_<countryCode>"
timezone="time zone"
value="value to format"
type="string|date|double|integer|javadate"
debug="true|false"
onfailure="inline|exception"
time="true|false">
Attributes
format
The format used to display the value. Required.
id
The name of the variable (of type java.lang.String) to save the formatted value to. If not specified, the result displays on the page. Optional.
locale
Locale to use to format the value that displays. If specified, overrides the locale that the browser specifies in the AcceptLang string. Use the following syntax: "<languageCode>_<countryCode>". See
Locale codes
for more details. By default, uses the first locale specified in the AcceptLang string for the browser. Optional.
timezone
Time zone to use to display the date. If you do not specify a value, defaults to the time zone of the server (not the browser). Optional.
type
Initial data type conversion that should take place before the value is formatted. Must be one of the following: string, date, double, integer, or javadate. Default is string. Optional.
value
Value to format. This value is converted to the data type specified in the type attribute prior to being formatted. If not specified, the body of the tag is evaluated and formatted. Optional.
See the
Common Domino JSP tag attributes
section for definitions of debug, onfailure, and time.
See Also
The Domutil tag library
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary