orochiluis
Programmer
I'm trying to set a collection of action form2 for an action form1 that looks this way
public actionform2 extends actionform{
String bvalue;
String bnoter;
//getters and setter provided
}
public actionform1 extends actionform{
String avalue;
String another;
actionform2 actions[];
//getters and setter provided for actions looks like this
actionform2[] getActions();
void setActions(actionform2[]);
}
and my jsp looks like this
<html:form>
<html:select property="actions" multiple="true">
<htmlptions collection="anarray"
property="bnother"
labelProperty="bvalue"/>
</html:select>
</html:form>
but when i submit the jsp it shows an array typemistmatch exception
any help??
public actionform2 extends actionform{
String bvalue;
String bnoter;
//getters and setter provided
}
public actionform1 extends actionform{
String avalue;
String another;
actionform2 actions[];
//getters and setter provided for actions looks like this
actionform2[] getActions();
void setActions(actionform2[]);
}
and my jsp looks like this
<html:form>
<html:select property="actions" multiple="true">
<htmlptions collection="anarray"
property="bnother"
labelProperty="bvalue"/>
</html:select>
</html:form>
but when i submit the jsp it shows an array typemistmatch exception
any help??