Struts :: Checking a radio button by default

All,
how to cheack a default radio button in struts?. for example i have 2 radio buttons
whose values are A and B, and A should be checked by default?. How can we do in Struts?
I couldn't find appropriate attribute in <html:radio> tag?

Ram
LVL 2
ramsin112400Asked:
Who is Participating?
 
suprapto45Connect With a Mentor Commented:
Use ActionForm to solve this.

So instead of directly hitting the JSP, call the Struts Action first which will redirect you to the page. Within this Action, set the value of the check box with the value that you want through ActionForm

David
0
 
ss_pConnect With a Mentor Commented:
Have a look at this page

http://husted.com/struts/tips/016.html

this might help you

SSP
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.