struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: question about findForward()
Date Tue, 03 Dec 2002 23:29:48 GMT
Do you just mean you want to do a redirect?  If so, you can do this
without changing your code, just change the forward definition (in your
action, or global) to have 'redirect="true"'.

> -----Original Message-----
> From: Kevin HaleBoyes [mailto:kzboyes@yahoo.com]
> Sent: Tuesday, December 03, 2002 3:20 PM
> To: struts-user@jakarta.apache.org
> Subject: question about findForward()
> 
> 
> I'm having trouble explaining what I want but I'll have a go
> of it anyway...
> 
> I'm in a "Save" action as a result of the POSTing of a form
> via a <html:cancel> button.  I do the test:
> 
>     if (isCancelled(request)) {}
> 
> and detect the cancel.  I'd like to go to another Action but
> I don't want to "propagate" the POST.  I want it to be a GET
> where the input ActionForm is empty.
> 
> I'm calling
>      ActionForward forward = mapping.findForward(forwardName);
>      return forward;
> to go to the new action but it propagates the POST.
> 
> Is there anyway turn the POST into a GET?
> Should I just call form.reset() manually?
> 
> 
> I hope this makes sense.
> Kevin.
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> 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>


Mime
View raw message