我的源代码是:
public class ContestForm
{
List<SubContestForm> subContests;
}
public class SubContestForm
{
int minAgeInclusive;
}
<jsp:useBean id="cont" class="com.kids.forms.ContestForm" scope="session"/>
<jsp:setProperty name="cont" property="*"/>
现在,我应该给我的表单元素指定什么名称,以便在ContestForm上自动填充minAgeInclusive? 我试过了
subContests[0].minAgeInclusive
但这不起作用!