大家好!我有两个问题:
1.Struts1的自动回填机制是怎么回事,如果不同Struts1该怎么实现自动回填?
2.我要用iterate标签在画面上输出十行两列的text文本框有什么好办法?一下是我的笨招,因为以前都是用iterate循环输出装有bean的List,而这次直接在List中装入String不知道如何是好!见笑啦大伙,求助啊~ActionForm
         private List<TextsBean> tabList = new ArrayList<TextsBean>();
public void setTabList(List<TextsBean> tabList) {
this.tabList = tabList;
}
public List<TextsBean> getTabList() {
for(int i=0;i<20;i++){
tabList.add(new TextsBean());
}
return tabList;
}
装入List中的bean
private String textValue = null; public String getTextValue() {
return textValue;
} public void setTextValue(String textValue) {
this.textValue = textValue;
}
前台Jsp
      <table border="0">
       <logic:iterate name="testTabForm" property="tabList" id="tabList" indexId="index">
       <logic:lessThan value="20" name="index">
       ${index%2==0?"<tr>":""}
       <td>
       ${index}<html:text name="tabList" property="textValue" indexed="true"/>
       </td>
       ${index%2==1?"</tr>":""}
       </logic:lessThan>
       </logic:iterate>
      </table>请大伙帮帮忙,弟弟在这儿先谢谢您啦!