The data for my page is displayed properly when the page first comes up,
but when the user clicks the submit button, and I look at the form data
in the action, all the form data is as it was originally. Does anyone
know how to get the form to have the data from the page?
I have the following on my jsp:
<bean:define id="unassignedSites" name="assignSitesForm"
property="assignedSites.unassignedEmployerSites"
type="java.util.Collection" />
<html:select name="assignSitesForm"
property="assignedSites.unassignedEmployerSites"
multiple="true" size="10">
<html:options name="assignSitesForm"
collection="unassignedSites" property="rfpSiteID"
labelProperty="name"/>
</html:select>
The form has the following:
public class AssignSitesForm extends ActionForm {
private AssignedSites assignedSites = null;
public AssignedSites getAssignedSites() {
return assignedSites;
}
public void setAssignedSites(AssignedSites assignedSites) {
this.assignedSites = assignedSites;
}
}
The AssignedSites class has:
public class AssignedSites implements Serializable {
private Collection unassignedEmployerSites = null;
public AssignedSites() {
}
public Collection getUnassignedEmployerSites() {
return unassignedEmployerSites;
}
public void setUnassignedEmployerSites( Collection
unassignedEmployerSites ) {
this.unassignedEmployerSites = unassignedEmployerSites;
}
}