this is my 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>
and this is my action without get/set
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");
}
Why I have this problem? *
tag 'select', field 'list': The requested list key 'typeSurvey' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
I have the last version of struts2.