On Monday 23 June 2003 12:23, imran ali wrote: > These are forms with various entries to be fill in. Now user may > enter and then hit submit. And got to nest page. Or he may enter > half of them and then decide to cancel and hit cancel and then go > back to previous page.
Depending on how your site is laid out, you may want to set up a forward named "cancel" that you can send the user to if they hit cancel. Or if this is a simple (1 step) form, just forward back the main menu. You can see how this is done by looking at the struts-example. Specifically, look at SaveRegistrationAction at line 157. > > On Mon, 23 Jun 2003 James Mitchell wrote : > >On Monday 23 June 2003 12:16, imran ali wrote: > > > Hi > > > I have a cancel button in my jsp. It is of submit type. > > > >I > > > > > want to go to previous page on hitting this button. How can I > > > >do > > > > > it in pure struts way. I am not allowed to use history.back > > > >etc. > > > > > As cache may be disturbed by other processes. > > > >This depends on what you are doing. Is this part of a wizard or > >simply > >navigational links? > > > > > Please help > > > > > > Thanks. > > > > > > Imran > > > ___________________________________________________ > > > Impress your clients! Send mail from me @ mycompany.com . > > > Just Rs.1499/year. > > > Click http://www.rediffmailpro.com to know more. > > > >--------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > >[EMAIL PROTECTED] > > > > > For additional commands, e-mail: > > > >[EMAIL PROTECTED] > > > >-- > >James Mitchell > >Software Developer/Struts Evangelist > >http://www.struts-atlanta.org > >770-822-3359 > >AIM:jmitchtx > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > >[EMAIL PROTECTED] > >For additional commands, e-mail: > >[EMAIL PROTECTED] > > Imran > ___________________________________________________ > Impress your clients! Send mail from me @ mycompany.com . > Just Rs.1499/year. > Click http://www.rediffmailpro.com to know more. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org 770-822-3359 AIM:jmitchtx --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]