You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gandle, Panchasheel" <pg...@rwjf.org> on 2003/10/23 19:30:20 UTC

html:cancel

Is there a way to go back to previous, previous page
without having a extra forward in the config file.

say I'm on list page
then I go to add page
which calls pageAddAction on cancel

I want to go back to list page and not on pageAdd when users cancel it.

<action pageAdd
       <input list

<action pageAddAction
       <input pageAdd

Thanks
Panchasheel

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: html:cancel

Posted by Ted Husted <hu...@apache.org>.
Not as such. What you can do is have the Action class look for a a 
"cancel" forward when there is a cancelled command. This lets you define 
a local cancel forward when needed or rely on a global one otherwise.

HTH, Ted.

Gandle, Panchasheel wrote:
> Is there a way to go back to previous, previous page
> without having a extra forward in the config file.
> 
> say I'm on list page
> then I go to add page
> which calls pageAddAction on cancel
> 
> I want to go back to list page and not on pageAdd when users cancel it.
> 
> <action pageAdd
>        <input list
> 
> <action pageAddAction
>        <input pageAdd
> 
> Thanks
> Panchasheel


-- 
Ted Husted,
   Junit in Action  - <http://www.manning.com/massol/>,
   Struts in Action - <http://husted.com/struts/book.html>,
   JSP Site Design  - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org