In the first line of the above code, form is the action form bean that is created and stored in request scope.
In line 2, you are retrieving a new instance of the PatientDetailsForm and referencing it in via variable pdform. So now you have 2 instances of PatientDetailsForm, one that is in request scope (that was passed to the action method) and the one returned from the DAO. The request scope form is still empty.
You can copy the properties from one bean to the other using
You can forcibly set the one returned by the DAO in request scope so that it overwrites the existing empty instance (key="PatientDetailsForm").
Let us know if this works. [ March 22, 2007: Message edited by: Sheldon Fernandes ]