The htmlEscape tag The message tag

4.3.9.RELEASE Spring Framework 863 Attribute Required? Runtime Expression? Description scope false true The scope for the var. application, session, request and page scopes are supported. Defaults to page scope. This attribute has no effect unless the var attribute is also defined. var false true The name of the variable to export the evaluation result to. If not specified the evaluation result is converted to a String and written as output.

43.6 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 43.5. Attributes Attribute Required? Runtime Expression? Description htmlEscape false true Set HTML escaping for this tag, as boolean value. Overrides the default HTML escaping setting for the current page. 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.

43.7 The htmlEscape tag

Sets default HTML escape value for the current page. Overrides a defaultHtmlEscape context-param in web.xml, if any. Table 43.6. Attributes Attribute Required? Runtime Expression? Description defaultHtmlEscape true true Set the default value for HTML escaping, to be put into the current PageContext.

43.8 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. 4.3.9.RELEASE Spring Framework 864 Table 43.7. Attributes Attribute Required? Runtime Expression? Description 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 ,. code false true The code key to use when looking up the message. If code is not provided, the text attribute will be used. htmlEscape false true Set HTML escaping for this tag, as boolean value. Overrides the default HTML escaping setting for the current page. javaScriptEscapefalse true Set JavaScript escaping for this tag, as boolean value. Default is false. 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. 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. 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.

43.9 The nestedPath tag