Form Tag library configuration

Form Tag library configuration

Ads

Tutorials   
Spring 3.2 MVC insert and retrieve blob from the database The hidden tag The errors tag net.roseindia.dao net.roseindia.service net.roseindia.model net.roseindia.controller Spring 3.2 MVC Hibernate Example Spring 3.2 MVC, Upload File in a specific folder Spring 3.2 MVC Form Handling The textarea tag The options tag The option tag The select tag The radiobuttons tag The radiobutton tag The checkboxes tag mvc:default-servlet-handler Static Resources Configuration View Controllers Configuration View resolvers Spring 3.2 MVC Hello World Example Content Negotiation Configuration Interceptors Configuration using Java or XML Customizing the MVC Java config or XML Namespace MVC Java Config or the MVC XML Namespace Servlet container initialization through code Support for ETag The checkbox tag Autogenerated logical view name through RequestToViewNameTranslator Modification in conventional ModelAndView ControllerClassNameHandlerMapping class for handling convention mapping The password tag The input tag The form tag Form Tag library configuration Customizing the Default Error Page @ExceptionHandler & @ResponseStatus annotation Multipart support for file upload in Spring MVC Themes and Theme resolvers in Spring MVC Locales in Spring MVC ContentNegotiatingViewResolver Redirecting and forwarding to views Chaining of Multiple view resolvers View Resolving through ViewResolver interface Requests Intercepting through a HandlerInterceptor Defining handler methods using @RequestMapping annotation Spring 3.2 Asynchronous Request Processing @RequestMapping annotation for mapping requests @Controller annotation for defining new controller
Ads

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

Share on Google+Share on Google+

Form Tag library configuration

Posted on: January 14, 2013 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Form Tag library configuration  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads