Estou começando a utilizar Struts 2 e estou com o seguinte problema.
Minha Action
public class UFAction extends ApplicationAction
{
private List lstUF;
private UFDAO daoUF = FactoryDAO.createUFDAO();
public String doList()
{
lstUF = daoUF.getAllUF();
return SUCCESS;
}
}
No meu form quero carregar em um compo todas as informações deste list, conforme codigo abaixo:
<s:form action="UFCrud!save.action" name="frmUF" method="post" >
<s:combobox list="lstUF" label="UF" headerKey="1" ></s:combobox>
</s:form>
Ele me retorna o seguinte erro
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/flnfe].[jsp] - Servlet.service() for servlet jsp threw exception
tag ‘combobox’, field ‘list’: You must specify a collection/array/map/enumeration/iterator. Example: people or people.{name} - [unknown location]
Já modifiquei o list passando um campo de meu objeto mas o erro persiste. Alguem sabe me disser o que pode ser ?