C
cc
Hi,
Inside my Action class I try to read all value of a select.
The select it is filled up from an other html window.
My tag select is:
<html:select property="operaCentri" size="1">
<htmlptionsCollection name="operaForm" property="operaCentri"/>
</html:select>
(Note: operaForm is my ActionForm class)
Inside my ActionForm class I create:
1) a Collection property;
2) get e set methods.
private Collection operaCentri = null;
public Collection getOperaCentri()
{
if(this.operaCentri==null)
return new Vector();
return this.operaCentri;
}
public void setOperaCentri(Collection value)
{
this.operaCentri = value;
}
In execute() method, inside my Action class, the getOperaCentri method
return always "null":
OperaForm operaForm=(OperaForm) form;
Collection col = form.getOperaCentri();
Where it is the error?
thank you for help.
By,
Carlo
P.S. Excuse my ugly English.
Inside my Action class I try to read all value of a select.
The select it is filled up from an other html window.
My tag select is:
<html:select property="operaCentri" size="1">
<htmlptionsCollection name="operaForm" property="operaCentri"/>
</html:select>
(Note: operaForm is my ActionForm class)
Inside my ActionForm class I create:
1) a Collection property;
2) get e set methods.
private Collection operaCentri = null;
public Collection getOperaCentri()
{
if(this.operaCentri==null)
return new Vector();
return this.operaCentri;
}
public void setOperaCentri(Collection value)
{
this.operaCentri = value;
}
In execute() method, inside my Action class, the getOperaCentri method
return always "null":
OperaForm operaForm=(OperaForm) form;
Collection col = form.getOperaCentri();
Where it is the error?
thank you for help.
By,
Carlo
P.S. Excuse my ugly English.