Home Spring Spring3.2 Form Tag library configuration
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Form Tag library configuration

Advertisement
Form Tag library configuration

Form Tag library configuration

In this section, you will learn about Spring form tag library and its configuration.

Spring MVC provides a wide variety of data binding tags for handling form elements. You can use these tags JSP and Spring Web MVC. The HTML generated by tag is HTML 4.01/XHTML 1.0.

Due to its integration with Spring MVC, the command object and reference data is easily accessible through it's tag. Because of this Spring form tag library, JSP is easily to develop, read and maintain.

How to configure Spring tag library in JSP ?

Spring form tag library packaged in spring-webmvc.jar and the library descriptor is called spring-form.tld.

For using tag library , you need to add the following tag on the top of your JSP page :

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

In the above configuration, form is the tag name prefix which you need to use for the tags from this library.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 14, 2013

Related Tutorials

Ask Questions?    Discuss: Form Tag library configuration  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com