1.1.2
1.2
Spring
http://www.springframework.org/tags
Spring Framework JSP Tag Library. Authors: Rod Johnson, Juergen Hoeller
htmlEscape
org.springframework.web.servlet.tags.HtmlEscapeTag
JSP
Sets default HTML escape value for the current page.
Overrides a "defaultHtmlEscape" context-param in web.xml, if any.
defaultHtmlEscape
true
true
Set the default value for HTML escaping, to be put
into the current PageContext.
escapeBody
org.springframework.web.servlet.tags.EscapeBodyTag
JSP
Escapes its enclosed body content, applying HTML escaping and/or JavaScript escaping.
The HTML escaping flag participates in a page-wide or application-wide setting
(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
htmlEscape
false
true
Set HTML escaping for this tag, as boolean value. Overrides the
default HTML escaping setting for the current page.
javaScriptEscape
false
true
Set JavaScript escaping for this tag, as boolean value.
Default is false.
message
org.springframework.web.servlet.tags.MessageTag
JSP
Retrieves the message with the given code, or text if code isn't resolvable.
The HTML escaping flag participates in a page-wide or application-wide setting
(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
message
false
true
A MessageSourceResolvable argument (direct or through JSP EL).
Fits nicely when used in conjunction with Spring's own validation error
classes which all implement the MessageSourceResolvable interface. For
example, this allows you to iterate over all of the errors in a form,
passing each error (using a runtime expression) as the value of this
'message' attribute, thus effecting the easy display of such error
messages.
code
false
true
The code (key) to use when looking up the message.
If code is not provided, the text attribute will be used.
arguments
false
true
Set optional message arguments for this tag, as a
(comma-)delimited String (each String argument can contain JSP EL),
an Object array (used as argument array), or a single Object (used
as single argument).
argumentSeparator
false
true
The separator character to be used for splitting the
arguments string value; defaults to a 'comma' (',').
text
false
true
Default text to output when a message for the given code
could not be found. If both text and code are not set, the tag will
output null.
var
false
true
The string to use when binding the result to the page,
request, session or application scope. If not specified, the result
gets outputted to the writer (i.e. typically directly to the JSP).
scope
false
true
The scope to use when exporting the result to a variable.
This attribute is only used when var is also set. Possible values are
page, request, session and application.
htmlEscape
false
true
Set HTML escaping for this tag, as boolean value.
Overrides the default HTML escaping setting for the current page.
javaScriptEscape
false
true
Set JavaScript escaping for this tag, as boolean value. Default is false.
theme
org.springframework.web.servlet.tags.ThemeTag
JSP
Retrieves the theme message with the given code, or text if code isn't resolvable.
The HTML escaping flag participates in a page-wide or application-wide setting
(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
message
false
true
A MessageSourceResolvable argument (direct or through JSP EL).
code
false
true
The code (key) to use when looking up the message.
If code is not provided, the text attribute will be used.
arguments
false
true
Set optional message arguments for this tag, as a
(comma-)delimited String (each String argument can contain JSP EL),
an Object array (used as argument array), or a single Object (used
as single argument).
argumentSeparator
false
true
The separator character to be used for splitting the
arguments string value; defaults to a 'comma' (',').
text
false
true
Default text to output when a message for the given code
could not be found. If both text and code are not set, the tag will
output null.
var
false
true
The string to use when binding the result to the page,
request, session or application scope. If not specified, the result
gets outputted to the writer (i.e. typically directly to the JSP).
scope
false
true
The scope to use when exporting the result to a variable.
This attribute is only used when var is also set. Possible values are
page, request, session and application.
htmlEscape
false
true
Set HTML escaping for this tag, as boolean value.
Overrides the default HTML escaping setting for the current page.
javaScriptEscape
false
true
Set JavaScript escaping for this tag, as boolean value. Default is false.
hasBindErrors
org.springframework.web.servlet.tags.BindErrorsTag
JSP
Provides Errors instance in case of bind errors.
The HTML escaping flag participates in a page-wide or application-wide setting
(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
errors
org.springframework.validation.Errors
name
true
true
The name of the bean in the request, that needs to be
inspected for errors. If errors are available for this bean, they
will be bound under the 'errors' key.
htmlEscape
false
true
Set HTML escaping for this tag, as boolean value.
Overrides the default HTML escaping setting for the current page.
nestedPath
org.springframework.web.servlet.tags.NestedPathTag
JSP
Sets a nested path to be used by the bind tag's path.
nestedPath
java.lang.String
path
true
true
Set the path that this tag should apply. E.g. 'customer'
to allow bind paths like 'address.street' rather than
'customer.address.street'.
bind
org.springframework.web.servlet.tags.BindTag
JSP
Provides BindStatus object for the given bind path.
The HTML escaping flag participates in a page-wide or application-wide setting
(i.e. by HtmlEscapeTag or a "defaultHtmlEscape" context-param in web.xml).
status
org.springframework.web.servlet.support.BindStatus
path
true
true
The path to the bean or bean property to bind status
information for. For instance account.name, company.address.zipCode
or just employee. The status object will exported to the page scope,
specifically for this bean or bean property
ignoreNestedPath
false
true
Set whether to ignore a nested path, if any. Default is to not ignore.
htmlEscape
false
true
Set HTML escaping for this tag, as boolean value. Overrides
the default HTML escaping setting for the current page.
transform
org.springframework.web.servlet.tags.TransformTag
JSP
Provides transformation of variables to Strings, using an appropriate
custom PropertyEditor from BindTag (can only be used inside BindTag).
The HTML escaping flag participates in a page-wide or application-wide setting
(i.e. by HtmlEscapeTag or a 'defaultHtmlEscape' context-param in web.xml).
value
true
true
The value to transform. This is the actual object you want
to have transformed (for instance a Date). Using the PropertyEditor that
is currently in use by the 'spring:bind' tag.
var
false
true
The string to use when binding the result to the page,
request, session or application scope. If not specified, the result gets
outputted to the writer (i.e. typically directly to the JSP).
scope
false
true
The scope to use when exported the result to a variable.
This attribute is only used when var is also set. Possible values are
page, request, session and application.
htmlEscape
false
true
Set HTML escaping for this tag, as boolean value. Overrides
the default HTML escaping setting for the current page.