有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java值未设置为逻辑迭代

我的jsp中有三个逻辑迭代,实际上错误发生的地方是当我填写错误的数据并提交它时显示错误,但是设置为逻辑迭代的列表没有在jsp中填充,但是我在列表中有值,因为没有设置逻辑迭代的列表不起作用。

<TR increment="<%=row++%>"  bgcolor="lightblue" id="rel<%= element2.getID()%>" style="<%= (element2.getIsRetrive()==0) ? "display:''" : "display:'none'" %>" >
  <TD align="center" id="<%= element2.getID()%>">&nbsp;

 <html:select property="companyID"  styleId="ID"  name="element2" indexed="true"    >
        <html:options collection="IDList" property="value"/>
  </html:select>

  <TD align="center">&nbsp;

    <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);

共 (0) 个答案