You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by imran ali <al...@rediffmail.com> on 2003/06/23 19:12:16 UTC

: Re: cancel button

Thanks for help. I have some more prob. I can come to this form 
 from two different jsps, now how will i know which jsp path to 
give in findforward.



On Mon, 23 Jun 2003 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.
>
>
>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: 
>>struts-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: 
>>struts-user-help@jakarta.apache.org
>>
>>--
>>James Mitchell
>>Software Developer/Struts Evangelist
>>http://www.struts-atlanta.org
>>770-822-3359
>>AIM:jmitchtx
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: 
>>struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: 
>>struts-user-help@jakarta.apache.org
>>
>
>
>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: 
>struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: 
>struts-user-help@jakarta.apache.org
>


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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Re: cancel button

Posted by Konstadinis Euaggelos <Va...@eurodyn.com>.
You must have a property  in your form, and according from which jsp you
come,
you must update this property, so in your ActionServlet you know where to
go.

Vangos

----- Original Message -----
From: "imran ali" <al...@rediffmail.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, June 23, 2003 7:12 PM
Subject: : Re: cancel button


> Thanks for help. I have some more prob. I can come to this form
>  from two different jsps, now how will i know which jsp path to
> give in findforward.
>
>
>
> On Mon, 23 Jun 2003 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.
> >
> >
> >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:
> >>struts-user-unsubscribe@jakarta.apache.org
> >> > For additional commands, e-mail:
> >>struts-user-help@jakarta.apache.org
> >>
> >>--
> >>James Mitchell
> >>Software Developer/Struts Evangelist
> >>http://www.struts-atlanta.org
> >>770-822-3359
> >>AIM:jmitchtx
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail:
> >>struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail:
> >>struts-user-help@jakarta.apache.org
> >>
> >
> >
> >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:
> >struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> >struts-user-help@jakarta.apache.org
> >
>
>
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


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


Re: : Re: cancel button

Posted by James Mitchell <jm...@apache.org>.
On Monday 23 June 2003 13:12, imran ali wrote:
> Thanks for help. I have some more prob. I can come to this form
>  from two different jsps, now how will i know which jsp path to
> give in findforward.

There are several ways to handle it.  If it were me, I would use a hidden 
value so that you can check it in the action class and forward appropriately.  
Although this takes away a few points on the maintainability scale.

>
> On Mon, 23 Jun 2003 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.
> >
> >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:
> >>
> >>struts-user-unsubscribe@jakarta.apache.org
> >>
> >> > For additional commands, e-mail:
> >>
> >>struts-user-help@jakarta.apache.org
> >>
> >>--
> >>James Mitchell
> >>Software Developer/Struts Evangelist
> >>http://www.struts-atlanta.org
> >>770-822-3359
> >>AIM:jmitchtx
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail:
> >>struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail:
> >>struts-user-help@jakarta.apache.org
> >
> >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:
> >struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail:
> >struts-user-help@jakarta.apache.org
>
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx



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