In this section, we are going to describe the radio tag. The radio tag is a UI tag that renders a radio button input field.
Add the following code snippet into the struts.xml file.
struts.xml
| <action name="radioTag" class="net.roseindia.checkboxlistTag"> <result>/pages/uiTags/radioTag.jsp</result> </action> |
Create an action class with two lists as shown below:
checkboxlistTag.java
package net.roseindia;
|
Create a jsp using the tag
<s:radio>.It renders
a radio button input field.
radioTag.jsp
<%@ taglib prefix="s" uri="/struts-tags" %>
|
Output of the radioTag.jsp:
![]() |
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: Radio Tag (Form Tag) Example View All Comments
Post your Comment