First, thanks for your help

I am having problems to build JSP with multiple questions and some radio
buttons for each question.

I am using two logic:iterate, one for questions and anotherone for answer
for each question, like this:

 <logic:iterate id="questions" name="unicaBean" indexId="index">
    <TR id="trdark">
        <TD>
            <html:hidden name="questions" property="seccion"/>
            <html:hidden name="questions" property="pregunta"/>
            <bean:write name="questions" property="descPregunta"/>
        </TD>
    </TR>
    <TR id="trclear">
        <TD>
            <table class="tableinfo">
                <tr>
                    <td>
                        <logic:iterate id="answers" name="questions"
property="opciones">
                            <html:radio name="answers" property="name"
value="id" idName="answers" indexed="true"/>
                            <bean:write name="answers" property="name"/>
                        </logic:iterate>
                    </td>
                </tr>
            </table>
        </TD>
    </TR>
</logic:iterate>

Reply via email to