The simplest thing to reset is to do an actual redirect, rather than a forward. This would clear all the request parameters, including the cancel one.
> <forward name="return" path="/admin/admin.jsp" redirect="true"/> or have an actual one for cancel > <forward name="cancel" path="/admin/admin.jsp" redirect="true"/> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ "Brown, Alex" wrote: > > Hello, > Using the STRUTS framework, a user can use <html:cancel/> to cancel forms. > As I understand it, this action places a value as a request parameter with > the name of the constant at > "org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY". If I use this > cancel button for navigation and I redirect lets say to the "return" forward > I have set up: > <action path = "/admin/user_save" > type = "com.blah.actions.SaveUserAction" > name = "userForm" > scope = "request" > input = "/admin/user.jsp" > validate = "true"> > <forward name="return" path="/admin/admin.jsp"/> > <forward name="failure" path="/admin/user.jsp"/> > <forward name="success" path="/admin/users_list.do"/> > </action> > > The cancel parameter is active throughout the entire transaction. Each page > therefore performs the canceling return action all the way up to the top. > Is there a way to reset this canceling action (i.e. Parameter) so that I can > make it stop where I want it? > > So: > user_save: Cancels form > Form action looks at the "return" value > The user is redirected to the return page and processing stops > > I can do this with custom tags, but I thought using cancel would be easier. > Any thoughts? > > Thanks :-) > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>