## Appendix D. spring.tld

## D.1. Introduction

One of the view technologies you can use with the Spring Framework is Java Server Pages (JSPs). To help you implement views using Java Server Pages the Spring Framework provides you with some tags for evaluating errors, setting themes and outputting internationalized messages.

Please note that the various tags generated by this form tag library are compliant with the XHTML-1.0-Strict specification and attendant DTD.

This appendix describes the `spring.tld` tag library.

- Section D.2, “The bind tag”
- Section D.3, “The escapeBody tag”
- Section D.4, “The hasBindErrors tag”
- Section D.5, “The htmlEscape tag”
- Section D.6, “The message tag”
- Section D.7, “The nestedPath tag”
- Section D.8, “The theme tag”
- Section D.9, “The transform tag”

## 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

Attribute | Required? | Runtime Expression?
--- | --- | ---
htmlEscape | false | true
ignoreNestedPath | false | true
path | true | true

## D.3. The `escapeBody` tag

µÑ·¯½×ÀÎ body³»¿ëÀ» EscapeÇÑ´Ù. 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

Attribute | Required? | Runtime Expression?
--- | --- | ---
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

Attribute | Required? | Runtime Expression?
--- | --- | ---
htmlEscape | false | true
name | true | true

## D.5. The `htmlEscape` tag

ÇöÀç ÆäÀÌÁö¸¦ À§ÇÑ HTML escape°ªÀ» ¼ÂÆÃ. web.xmlÆÄÀÏ³» "defaultHtmlEscape" context-paramÀ» ¿À¹ö¶óÀÌµåÇÑ´Ù.

Table D.4. Attributes

Attribute | Required? | Runtime Expression?
--- | --- | ---
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

Attribute | Required? | Runtime Expression?
--- | --- | ---
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

Attribute | Required? | Runtime Expression?
--- | --- | ---
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

Attribute | Required? | Runtime Expression?
--- | --- | ---
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

Attribute | Required? | Runtime Expression?
--- | --- | ---
htmlEscape | false | true
scope | false | true
value | true | true
var | false | true

Prev | Home | Next
Appendix C. spring-beans_2_0.dtd | Sponsored by Interface21 | Appendix E. spring-form.tld