私はjspに3つのロジック反復を持っていますが、実際にエラーが発生するのは、間違ったデータを入力して送信するとエラーが表示されますが、ロジック反復に設定しているリストはJSPに入力されていませんが、値がありますロジックの反復を設定していないリストは機能しませんでした。
<TR increment="<%=row++%>" bgcolor="lightblue" id="rel<%= element2.getID()%>" style="<%= (element2.getIsRetrive()==0) ? "display:''" : "display:'none'" %>" >
<TD align="center" id="<%= element2.getID()%>">
<html:select property="companyID" styleId="ID" name="element2" indexed="true" >
<html:options collection="IDList" property="value"/>
</html:select>
<TD align="center">
<html:select property="Type" name="element2" indexed="true">
<html:options collection="TypeList" property="value"/>
</html:select>
</TD>
sampleForm.java でフォームを設定し、リストの値を取得しています。しかし、それは論理反復に渡されません
protected Vector sampleList = new Vector();
/**
* @return the sampleList
*/
public Vector getsampleList() {
return sampleList;
}
/**
* @param sampleList the sampleList to set
*/
public void setsampleList(Vector sampleList) {
this.sampleList = sampleList;
}
アクションクラスでは、このようにリストを設定しています
sampleForm.setSampleList(sampleList);