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

 
 

Share on Google+Share on Google+

The select tag

Advertisement
In this section, you will learn about the select tag of Spring form tag library.

The select tag

In this section, you will learn about the select tag of Spring form tag library.

The select tag provide and an HTML 'select' element. It supports data binding to the selected option as well as the use of nested option and options tags.

Sample code is shown below :

<tr>
	<td>Skills:</td>
	<td><form:select path="skills" items="${skills}"/></td>
</tr>

The rendered HTML code will be something like this :

<tr>
	<td>Skills:</td>
	<td><select name="skills" multiple="true">
		<option value="Botany">Botany</option>
		<option value="Physics" selected="selected">Physics</option>
		<option value="Chemistry">Chemistry</option>
	</select>
	</td>
</tr>

 

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: March 22, 2013

Related Tutorials

Ask Questions?    Discuss: The select tag  

Post your Comment


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