struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: removing parameters from forward
Date Wed, 03 Jul 2002 05:36:14 GMT
I always check for that parameter in the request attributes first, and 
if I don't find it there, then I check in the request parameters.



Donald Dwoske wrote:
> Quick version:  I have a hidden field named 'action' on
> my form, and when I forward to another action, I want
> that field, plus all the others to be reset.  Is there
> a way to erase all the parameters in a request before 
> returning a new ActionForward?
> 
> Long version:
> 
> I have a situation where I am on one jsp form which has
> a hidden field called "action", this field is
> tells lots of my Actions what to do when the form is submitted,
> thus many form beans have this same property.
> 
> I have a link from that Action which can go to a
> different Action and I need to return to the first action when
> done with the second.
> 
> So my link looks sort of like this:
> 
> addDefaults.do?returnUrl=/editWorkrequest.do
> 
> When addDefaults is done, I can go back to editWorkRequest.
> This allows me to use addDefaults in many different sub-workflows
> and go back to whatever called it.
> 
> So when my sub-task changes the 'action' field, it messes up
> the 'action' field in my editWorkRequest when I go back there.
> 
> I have all the original information I need for editWorkrequest.do
> still in my session, so I just want a fresh request... any way
> to erase what's in the request, or reset that 'action' field to
> something else?
> 
> -Don
> 
> 
> 
> --
> 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