<html: radio> Check default switch in struts html tag
How to set the default switch in struts html tag?
<html:radio name="RegisterForm" property="Group" value="<%=Contant.Male%>"/><label>Male</label><BR> <html:radio name="RegisterForm" property="Group" value="<%=Contant.Female%>"/><label>Female</label> Here I have to set Male as standard. Thanks in advance.
+7
siva
source share1 answer
Just write that your controller sets the appropriate property in the form before submitting it for viewing:
form.setGroup(Constant.Male); +7
Jb nizet
source share