【发布时间】:2009-11-02 16:42:21
【问题描述】:
这是我的jsp:
<s:form action="InsertSurvey">
<table>
<tr>
<td> ID Survey: </td><td><s:textfield name="SurveyValues.survey.idtextsurvey"/> </td>
<td> Tipo Survey: </td><td><s:select list="typeSurvey"/> </td>
</tr>
</table>
</s:form>
这是我没有获取/设置的操作
public class InsertSurveyAction extends ActionSupport implements Preparable {
protected SurveyValues surveyValues;
protected List typeSurvey;
protected String typeSurveySelected;
public InsertSurveyAction() {
}
@Override
public String execute() throws Exception {
return SUCCESS;
}
public void prepare() throws Exception {
typeSurvey = new ArrayList();
typeSurvey.add("Multi");
typeSurvey.add("Singolo");
}
为什么我有这个问题? *
标签“选择”,字段“列表”: 请求的列表键“typeSurvey”可以 不能被解决为 集合/数组/映射/枚举/迭代器 类型。示例:人或人。{name} - [未知位置]
我有最新版本的 struts2。
【问题讨论】: