The transform tag The url tag

4.3.9.RELEASE Spring Framework 866 Attribute Required? Runtime Expression? Description message false true A MessageSourceResolvable argument direct or through JSP EL. 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.12 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 43.11. 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. 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. 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.

43.13 The url tag

Creates URLs with support for URI template variables, HTMLXML escaping, and Javascript escaping. Modeled after the JSTL c:url tag with backwards compatibility in mind. 4.3.9.RELEASE Spring Framework 867 Table 43.12. Attributes Attribute Required? Runtime Expression? Description value true true The URL to build. This value can include template {placeholders} that are replaced with the URL encoded value of the named parameter. Parameters must be defined using the param tag inside the body of this tag. context false true Specifies a remote application context path. The default is the current application context path. var false true The name of the variable to export the URL value to. If not specified the URL is written as output. 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. htmlEscape false true Set HTML escaping for this tag, as a boolean value. Overrides the default HTML escaping setting for the current page. javaScriptEscapefalse true Set JavaScript escaping for this tag, as a boolean value. Default is false. 4.3.9.RELEASE Spring Framework 868

44. spring-form JSP Tag Library