Home Spring Spring3.2 The select tag



The select tag
Posted on: March 22, 2013 at 12:00 AM
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>

 

Related Tags for The select tag:


More Tutorials from this section

Ask Questions?    Discuss: The select tag  

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.