Spring bundles a set of tags for the easier authoring of plain JSP pages and JSP forms, defined in spring.tld
and spring-form.tld
respectively. spring.tld
describes general-purpose JSP tags commonly used in JSP pages, listed in the following table:
Spring tag |
Description |
---|---|
|
This allows the data binding of an attribute given in the bind path of a locally declared bean or a |
|
This applies HTML escaping and JavaScript escaping for the body. |
|
This provides an error instance if there are bind errors. |
|
This sets an HTML escape value for the current JSP page. |
|
This displays a message for a given code, usually resolved from a resource bundle. |
|
This sets a nested path of |
|
This loads the theme resource using the given code. |
|
This transforms properties inside the |
|
This creates a URL with URI template variables. It is modeled after the JSTL |
|
This evaluates SpEL expressions. |
Spring form
tags provide data binding for HTML forms. They have tight integration with request handlers in controllers. Generally, they represent similarly named HTML form
elements and share common attributes:
Form tag |
Sample |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|