Appendix D. spring.tld

D.1. Introduction

This appendix describes the spring.tld tag library descriptor.

D.2. The bind tag

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).

Table D.1. Attributes

AttributeRequired?Runtime Expression?Description

htmlEscape

false

true

ignoreNestedPath

false

true

path

true

true

D.3. The escapeBody tag

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).

Table D.2. Attributes

AttributeRequired?Runtime Expression?Description

htmlEscape

false

true

javaScriptEscape

false

true

D.4. The hasBindErrors tag

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).

Table D.3. Attributes

AttributeRequired?Runtime Expression?Description

htmlEscape

false

true

name

true

true

D.5. The htmlEscape tag

Sets default HTML escape value for the current page. Overrides a "defaultHtmlEscape" context-param in web.xml, if any.

Table D.4. Attributes

AttributeRequired?Runtime Expression?Description

defaultHtmlEscape

true

true

D.6. The message tag

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).

Table D.5. Attributes

AttributeRequired?Runtime Expression?Description

arguments

false

true

argumentSeparator

false

true

code

false

true

htmlEscape

false

true

javaScriptEscape

false

true

message

false

true

scope

false

true

text

false

true

var

false

true

D.7. The nestedPath tag

Sets a nested path to be used by the bind tag's path.

Table D.6. Attributes

AttributeRequired?Runtime Expression?Description

path

true

true

D.8. The theme tag

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).

Table D.7. Attributes

AttributeRequired?Runtime Expression?Description

arguments

false

true

code

false

true

htmlEscape

false

true

javaScriptEscape

false

true

scope

false

true

text

false

true

var

false

true

D.9. The transform tag

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).

Table D.8. Attributes

AttributeRequired?Runtime Expression?Description

htmlEscape

false

true

scope

false

true

value

true

true

var

false

true

Sponsored by