webwork2的标签select的使用,请教大家

05-03-28 tszcg2004

jsp页面:

.................

<ww:select name="model.leid" list="eList" listValue="en" emptyOption="true" value="epid" listKey="epid" />

..................

form:

private String leid;

public void setLeid(String leid){

this.leid=leid;

}

public String getLeid(){

return (this.leid);

}

private int lr;

public void setLr(int lr){

this.lr=lr;

}

public int getLr(){

return (this.lr);

}

private int epid;

public void setEpid(int epid){

this.epid=epid;

}

public int getEpid(){

return (this.epid);

}

private String en;

public void setEn(String en){

this.en=en;

}

public String getEn(){

return (this.en);

}

private List eList;

public void setEList(List eList){

this.eList=eList;

}

public List getEList(){

return (this.eList);

}

action:

取出来的值"leid"、"epid",都是空,请问,是什么原因,我应该怎么做,才能取出select所选的值,谢谢大家了

tszcg2004
2005-03-28 09:18

jsp页面:

ww:select name="model.leid" list="eList" listValue="en" emptyOption="true" value="epid" listKey="epid"

..................