struts actionform y select
Hola,a ver si alguien puede ayudarme.
Resulta que tengo un jsp con un select multiple
<html:select name="noticiaActionForm" property"lista" multiple="true">
<html:option value="noticia1">noticia1</html:option>
<html:option value="noticia2">noticia2</html:option>
</html:select>
Dentro del action for tengo declaradas la variable
private String[] lista;
y sys metodos get y set
public String[] getLista(){
return lista;
}
public void setLista(String[] lista){
this.lista=lista
}
pues bien,en el action correspondiente al recuperar el valor de la propiedad lista,me sle como nulo.
Alguien sabe si estoy haciendo algo mal?
Resulta que tengo un jsp con un select multiple
<html:select name="noticiaActionForm" property"lista" multiple="true">
<html:option value="noticia1">noticia1</html:option>
<html:option value="noticia2">noticia2</html:option>
</html:select>
Dentro del action for tengo declaradas la variable
private String[] lista;
y sys metodos get y set
public String[] getLista(){
return lista;
}
public void setLista(String[] lista){
this.lista=lista
}
pues bien,en el action correspondiente al recuperar el valor de la propiedad lista,me sle como nulo.
Alguien sabe si estoy haciendo algo mal?
Mi problema es que no me carga todos los valores que tengo marcados en el select m煤ltiple, s贸lo me coge el primero y me crea un array de un s贸lo elemento.
