Spring and Spring form tag libraries

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

<spring:bind/>

This allows the data binding of an attribute given in the bind path of a locally declared bean or a Model attribute and provides a BindStatus object to the enclosed body content.

<spring:escapeBody/>

This applies HTML escaping and JavaScript escaping for the body.

<spring:hasBindErrors/>

This provides an error instance if there are bind errors.

<spring:htmlEscape/>

This sets an HTML escape value for the current ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.