From: "KEBE Cheikh Sil˙ffffffffffe8ye" <[EMAIL PROTECTED]>
> In my editProspectAction.java, i do
> public ActionForward execute(
> ActionMapping mapping,
> ActionForm form,
                       ^^^^^

Populate the 'form' that is passed into the method, don't create a new one:

> form=new ProspectForm();
> form=prospect;
> request.setAttribute(mapping.getAttribute(),form);

Actually I'm not certain what's going on in those three lines.  Take a look
at the struts-example webapp, it shows how to pre-populate a form using
BeanUtils.copyProperties.

It goes something like...
1. read Value Object from database
2. copy matching properties over to form bean
3. forward to JSP

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to