Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Spring Spring3.2 The radiobutton tag

Related Tutorials


 
 

Share on Google+Share on Google+

The radiobutton tag

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

The radiobutton tag

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

A radio button is a type of graphical user interface element that allows the user to choose only one of a predefined set of options.

The radiobutton tag of Spring form tag library renders an HTML 'input' tag with type 'radio'.

Given below sample code for declaring radio button using radiobutton tag of Spring form tag library :

<form:form>
	<table>
		<tr>
			<td>Sex:</td>
			<td>Male: <form:radiobutton path="sex" value="M"/> <br/>
			Female: <form:radiobutton path="sex" value="F"/> </td>
		</tr>
	</table>
</form:form>

In the above code, you can see the path name is same while values passed are different i.e. M & F.

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

Discuss: The radiobutton tag  

Post your Comment


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