Hi all,
I'm sorry for the urgent-tag. But, I have a deadline to make this weekend.
Okay the problem:
I have a ActionForm wich contains a ValueObject. Like this
(DeleteCorrectionForm):
package nl.informatiefabriek.om.action.correction;
import nl.informatiefabriek.om.correction.value.CorrectionValue;
import org.apache.struts.action.ActionForm;
/**
* @author harm
*
* @struts.form
* name = "deleteCorrectionForm"
*/
public class DeleteCorrectionForm extends ActionForm {
private String id;
private CorrectionValue correctionValue;
/**
* @return
*/
public CorrectionValue getCorrectionValue() {
return correctionValue;
}
/**
* @return
*/
public String getId() {
return id;
}
/**
* @param value
*/
public void setCorrectionValue(CorrectionValue value) {
correctionValue = value;
}
/**
* @param string
*/
public void setId(String string) {
id = string;
}
}
In my JSP I have to iterate throug a Collection of 'Corrections' like
this.
The corrections Collection contains CorrectionValueObjects:
<c:forEach items="${corrections}" var="correction">
<html:form action="/delete_correction">
<html:hidden name="idBean" property="id"/>
<html:hidden name="correction" property=
"correctionValue.correctionId"/>
<html:submit styleClass="button" value="Delete"/>
</html:form>
</c:forEach>
This piece of JSP generates this html:
<form name="deleteCorrectionForm" method="post"
action="/ordermanager-ejb/delete_correction.do">
<input type="hidden" name="id" value="A simple id">
<input type="hidden" name="correctionValue.correctionId" value="A id">
<input type="submit" value="Delete" class="button">
</form>
But when I submit the form I get:
javax.servlet.ServletException: BeanUtils.populate
What is the way to do this?
Many, many thanks,
Harm de Laat
Informatiefabriek
The Netherlands
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]