Spring Framework JSP Form Tag Library
3.0
form
http://www.springframework.org/tags/form
Renders an HTML 'form' tag and exposes a binding path to inner tags for binding.
form
org.springframework.web.servlet.tags.form.FormTag
JSP
HTML Standard Attribute
id
false
true
HTML Standard Attribute - added for backwards compatibility cases
name
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
Name of the model attribute under which the form object is exposed.
Defaults to 'command'.
modelAttribute
false
true
Name of the model attribute under which the form object is exposed.
Defaults to 'command'.
commandName
false
true
HTML Required Attribute
action
false
true
HTML Optional Attribute
method
false
true
HTML Optional Attribute
target
false
true
HTML Optional Attribute
enctype
false
true
Specifies the list of character encodings for input data that is accepted by the server processing this form. The value is a space- and/or comma-delimited list of charset values. The client must interpret this list as an exclusive-or list, i.e., the server is able to accept any single character encoding per entity received.
acceptCharset
false
true
HTML Event Attribute
onsubmit
false
true
HTML Event Attribute
onreset
false
true
Common Optional Attribute
autocomplete
false
true
The parameter name used for HTTP methods other then GET and POST. Default is '_method'
methodParam
false
true
true
Renders an HTML 'input' tag with type 'text' using the bound value.
input
org.springframework.web.servlet.tags.form.InputTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
HTML Optional Attribute
size
false
true
HTML Optional Attribute
maxlength
false
true
HTML Optional Attribute
alt
false
true
HTML Event Attribute
onselect
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will make the HTML element readonly.
readonly
false
true
Common Optional Attribute
autocomplete
false
true
true
Renders an HTML 'input' tag with type 'password' using the bound value.
password
org.springframework.web.servlet.tags.form.PasswordInputTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
HTML Optional Attribute
size
false
true
HTML Optional Attribute
maxlength
false
true
HTML Optional Attribute
alt
false
true
HTML Event Attribute
onselect
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will make the HTML element readonly.
readonly
false
true
Common Optional Attribute
autocomplete
false
true
Is the password value to be shown? Defaults to false.
showPassword
false
true
true
Renders an HTML 'input' tag with type 'hidden' using the bound value.
hidden
org.springframework.web.servlet.tags.form.HiddenInputTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
true
Renders an HTML 'select' element. Supports databinding to the selected option.
select
org.springframework.web.servlet.tags.form.SelectTag
JSP
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
The Collection, Map or array of objects used to generate the inner 'option' tags
items
false
true
Name of the property mapped to 'value' attribute of the 'option' tag
itemValue
false
true
Name of the property mapped to the inner text of the 'option' tag
itemLabel
false
true
HTML Optional Attribute
size
false
true
HTML Optional Attribute
multiple
false
true
true
Renders a single HTML 'option'. Sets 'selected' as appropriate based on bound value.
option
org.springframework.web.servlet.tags.form.OptionTag
JSP
The actual value bound to the 'value' attribute
value
java.lang.Object
The String representation of thr value bound to the 'value' attribute, taking into consideration
any PropertyEditor associated with the enclosing 'select' tag.
displayValue
java.lang.String
HTML Standard Attribute
id
false
true
HTML Optional Attribute
value
true
true
HTML Optional Attribute
label
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
true
Renders a list of HTML 'option' tags. Sets 'selected' as appropriate based on bound value.
options
org.springframework.web.servlet.tags.form.OptionsTag
empty
HTML Standard Attribute
id
false
true
The Collection, Map or array of objects used to generate the inner 'option' tags. This attribute is required unless the containing select's property for data binding is an Enum, in which case the enum's values are used.
items
false
true
Name of the property mapped to 'value' attribute of the 'option' tag
itemValue
false
true
Name of the property mapped to the inner text of the 'option' tag
itemLabel
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
true
Renders an HTML 'input' tag with type 'radio'.
radiobutton
org.springframework.web.servlet.tags.form.RadioButtonTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
HTML Optional Attribute
value
false
true
Value to be displayed as part of the tag
label
false
true
true
Renders multiple HTML 'input' tags with type 'radio'.
radiobuttons
org.springframework.web.servlet.tags.form.RadioButtonsTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
The Collection, Map or array of objects used to generate the 'input' tags with type 'radio'. This attribute is required unless the property for data binding is an Enum, in which case the enum's values are used.
items
false
true
Name of the property mapped to 'value' attribute of the 'input' tags with type 'radio'
itemValue
false
true
Value to be displayed as part of the 'input' tags with type 'radio'
itemLabel
false
true
Delimiter to use between each 'input' tag with type 'radio'. There is no delimiter by default.
delimiter
false
true
Specifies the HTML element that is used to enclose each 'input' tag with type 'radio'. Defaults to 'span'.
element
false
true
true
Renders an HTML 'input' tag with type 'checkbox'.
checkbox
org.springframework.web.servlet.tags.form.CheckboxTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
HTML Optional Attribute
value
false
true
Value to be displayed as part of the tag
label
false
true
true
Renders multiple HTML 'input' tags with type 'checkbox'.
checkboxes
org.springframework.web.servlet.tags.form.CheckboxesTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
The Collection, Map or array of objects used to generate the 'input' tags with type 'checkbox'
items
true
true
Name of the property mapped to 'value' attribute of the 'input' tags with type 'checkbox'
itemValue
false
true
Value to be displayed as part of the 'input' tags with type 'checkbox'
itemLabel
false
true
Delimiter to use between each 'input' tag with type 'checkbox'. There is no delimiter by default.
delimiter
false
true
Specifies the HTML element that is used to enclose each 'input' tag with type 'checkbox'. Defaults to 'span'.
element
false
true
true
Renders an HTML 'textarea'.
textarea
org.springframework.web.servlet.tags.form.TextareaTag
empty
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used when the bound field has errors.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
HTML Event Attribute
onfocus
false
true
HTML Event Attribute
onblur
false
true
HTML Event Attribute
onchange
false
true
HTML Standard Attribute
accesskey
false
true
HTML Required Attribute
rows
false
true
HTML Required Attribute
cols
false
true
HTML Event Attribute
onselect
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will make the HTML element readonly.
readonly
false
true
true
Renders field errors in an HTML 'span' tag.
errors
org.springframework.web.servlet.tags.form.ErrorsTag
JSP
messages
java.util.List
Path to errors object for data binding
path
false
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
Delimiter for displaying multiple error messages. Defaults to the br tag.
delimiter
false
true
Equivalent to "class" - HTML Optional Attribute
cssClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
Specifies the HTML element that is used to render the enclosing errors.
element
false
true
true
Renders a form field label in an HTML 'label' tag.
label
org.springframework.web.servlet.tags.form.LabelTag
JSP
Path to property for data binding
path
true
true
HTML Standard Attribute
id
false
true
Enable/disable HTML escaping of rendered values.
htmlEscape
false
true
HTML Standard Attribute
for
false
true
Equivalent to "class" - HTML Optional Attribute.
cssClass
false
true
Equivalent to "class" - HTML Optional Attribute. Used only when errors are present.
cssErrorClass
false
true
Equivalent to "style" - HTML Optional Attribute
cssStyle
false
true
HTML Standard Attribute
lang
false
true
HTML Standard Attribute
title
false
true
HTML Standard Attribute
dir
false
true
HTML Standard Attribute
tabindex
false
true
HTML Event Attribute
onclick
false
true
HTML Event Attribute
ondblclick
false
true
HTML Event Attribute
onmousedown
false
true
HTML Event Attribute
onmouseup
false
true
HTML Event Attribute
onmouseover
false
true
HTML Event Attribute
onmousemove
false
true
HTML Event Attribute
onmouseout
false
true
HTML Event Attribute
onkeypress
false
true
HTML Event Attribute
onkeyup
false
true
HTML Event Attribute
onkeydown
false
true
true
Renders an HTML 'button' tag.
button
org.springframework.web.servlet.tags.form.ButtonTag
JSP
HTML Standard Attribute
id
false
true
The name attribute for the HTML button tag
name
false
true
The value attribute for the HTML button tag
value
false
true
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
disabled
false
true
true