Stripes Tag Library
Tag format


Formats an object using Stripes' formatting facilities. If no formatter is available for the object, then toString() is called. Null values are formatted as an empty string. If a 'var' attribute is specified, the generated URL will be written to that variable, otherwise it will be written into the page.


Tag Information
Tag Classnet.sourceforge.stripes.tag.FormatTag
TagExtraInfo ClassNone
Body Contentempty
Display Nameformat

Attributes
NameRequiredRequest-timeTypeDescription
valuetruetruejava.lang.String The object to be formatted.
varfalsetruejava.lang.String The (optional) name of a scoped variable to store the formatted value in. If no name is specified then the value will be written directly to the page instead. See also the 'scope' attribute to control which scope the variable gets set in.
scopefalsetruejava.lang.String The (optional) name of the JSP scope into which to set the variable specified by the var attribute. Valid values are 'page', 'request', 'session' and 'application'. Defaults to 'page'.
formatTypefalsetruejava.lang.StringThe type used to format the object. If the value is a date, valid values are 'date', 'time' and 'datetime'. If the value is a Number, valid values are 'number', 'percentage' and 'currency'.
formatPatternfalsetruejava.lang.StringThe pattern to apply. Can be either a named pattern or an actual pattern as understood by java.text.DateFormat or java.text.NumberFormat as appropriate for the type of object being formatted.

Variables
No Variables Defined.


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