html:radio动态生成property问题
struts-config.xml中
jsp中
我想在动态生成html:radio时让property对应form-bean中的数组radioList,可是试了很多次都不行(radioList[${index]}也不行),请高手指教啊
<form-bean name="testForm" type="org.apache.struts.validator.DynaValidatorActionForm">
<form-property name="radioList" type="java.lang.String[]"/>
</form-bean>
jsp中
<html:form action="/userInvest.do">
<logic:iterate id="question" collection="${invest.questions}" indexId="index">
${index+1}.${question.questionName}<br/>
<logic:iterate id="answer" collection="${question.answers}">
<html:radio property="radioList[index]" value="${answer.answerId}">${answer.answerName}</html:radio>
</logic:iterate>
</logic:iterate>
</html:form>
我想在动态生成html:radio时让property对应form-bean中的数组radioList,可是试了很多次都不行(radioList[${index]}也不行),请高手指教啊
...全文


Web 开发
