I'm very new to Struts and html & web interfaces in general and hope someone can help me a solve a problem.
A client needs to submit in a single form, selections from multiple radio button groups. What I mean here is, for an iteration of radio buttons (3 selections a piece), they need to select one from each iteration. So for each iteration, there are 3 choices and they need to select one from each.
My struts jsp is as follows and currently a user can only select one radio button from all of them, rather than one from each group and I'm not sure how to make them have one choice from each group - I need them to select one from every 3 but submit it in one form submission.
<table border="0" width="100%">
<logic:iterate id="myId" name="myList" indexId="myIndex">
<td align="right"><bean:write name="myId" property="myIdProperty"/></td>
<bean:define id="myIdProperty" name="myId" property="myIdPropert" type="java.lang.String"/>
<html:hidden property="<Globals.STATIC_VARIABLE>" value="<%=myIdProperty>"/>
<html:radio property="array" value="choice 1"/>Choice 1
<html:radio property="array" value="choice 2"/>Choice 2
<html:radio property="array" value="choice 3"/>Choice 3
<html:submit property="submit" >
Oh also, I'd like to pre-select one of the buttons and also perhaps be able to set this on the fly, perhaps based upon a previous selection (accessing from a db via ejbs).