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.
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.
Ask Questions? Discuss: The radiobutton tag
Post your Comment