You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ciaran Hanley <ci...@sentenial.ie> on 2004/03/19 19:52:11 UTC
Mapping Forward to new form
Hey,
I am adding user details to the DB through a form, on a successful insert I
would like to map forward to the same form.
The problem is when I use the action forward the form on the forwarded page
is filled with the details from the user I just added.
if(addUser((UserForm) form, request, response))
{
return (mapping.findForward("adduser"));
}
I would like to map to a new blank form, how do I do this?
Thanks
Re: Mapping Forward to new form
Posted by Geeta Ramani <ge...@cmpco.com>.
Ciaran:
Just create a new formbean and put it in the request before you forward..:)
Geeta
Ciaran Hanley wrote:
> I would like to map to a new blank form, how do I do this?
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org