Spring MVC form Binding

Spring form tags are defined in the spring-form.tld and they are bundled in spring.jar To use spring form tags, we need to add below taglib directive on top of jsp page. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix=”form” uri=”http://www.springframework.org/tags/form” %> where ‘form’ is the tag name prefix you want to use for the tags […]

Share this article on

Spring MVC form tags

Lets understand about different form tags of spring through example Lets see an example with all the above tags We will create one Registration form and see how all the tags can be used in real time Create pom.xml as below <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">   <modelVersion>4.0.0</modelVersion>   <groupId>Spring</groupId>   <artifactId>SpringMVCFormTags</artifactId>   <packaging>war</packaging> […]

Share this article on
< Previous Next >