Re: Canceling of forms using Struts

2002-01-30 Thread Ted Husted

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. 

>   

or have an actual one for cancel 

>   


-- 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  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:
> type = "com.blah.actions.SaveUserAction"
>name = "userForm"
>scope = "request"
>input = "/admin/user.jsp"
>validate = "true">
>   
>   
>   
> 
> 
> 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:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Canceling of forms using Struts

2002-01-29 Thread Brown, Alex

Hello,
Using the STRUTS framework, a user can use  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:

  
  
  


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:   
For additional commands, e-mail: