Re: Mapping Forward to new form

2004-03-20 Thread Mark Lowe
If you form is scoped to request you can also set redirect="true" in 
the action forward.

On 19 Mar 2004, at 20:03, Saul Q Yuan wrote:

You can call ((UserForm) form).reset() before forwarding.

Saul

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Friday, March 19, 2004 1:52 PM
To: Struts User Mailing List
Subject: 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










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


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


RE: Mapping Forward to new form

2004-03-19 Thread Saul Q Yuan
You can call ((UserForm) form).reset() before forwarding.

Saul

> -Original Message-
> From: Ciaran Hanley [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 19, 2004 1:52 PM
> To: Struts User Mailing List
> Subject: 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
> 
>  
> 
>  
> 
>  
> 
> 


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



Re: Mapping Forward to new form

2004-03-19 Thread Geeta Ramani
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mapping Forward to new form

2004-03-19 Thread Ciaran Hanley
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