Home Spring Spring3.2 The input tag
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

The input tag

Advertisement
In this tutorial, you will learn about the input tag of Spring form tag library.

The input tag

In this tutorial, you will learn about the input tag of Spring form tag library.

The input in Spring is used to define an input field where user can enter data. The input tag of Spring form tag library renders an input field and default type is set as type="text". Post Spring 3.1, you can use other types such as HTML5-specific types like 'email', 'tel', 'date', etc.

You can define Spring tag library input tag as follows :

<form:input path="name" />

The complete form with <form:input> tags is given below :

<form:form>
<table>
<tr>
<td>First Name:</td>
<td><form:input path="firstName" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><form:input path="lastName" /></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Save Changes" />
</td>
</tr>
</table>
</form:form>

 

Advertisements

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

Ask Questions?    Discuss: The input tag  

Post your Comment


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