Just call the setters ! look also at the thread prepopulation earlier this
week
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
EditForm editForm = (EditForm)form;
editForm.setTitle("title value");
editForm.setDetails("detail value");
return mapping.findForward("success");
}
----- Original Message -----
From: "Marcus Biel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 1:49 PM
Subject: How to fill an Actionform after using an ActionClass ?
> How to fill an Actionform after using an ActionClass ?
>
>
> Normally a user fills out a form on a jsp, then the Actionform gets
> called and filled by the data the user entered.
> Then the ActionClass gets started and uses the data from the ActionForm.
>
> But I've got an Action that creates data, and it needs to get saved in
> the ActionForm.
>
> How can this be done ???
>
>
> thx,
>
> marcus
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>