Get creative.  You can use form data, i.e. a button value is not
submitted unless a button is clicked.  You can use javascript to set an
arbitrary set of action variables.  You can use a dispatch action.

Have fun with it ;-).

Edgar


-----Original Message-----
From: Marcus Biel [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 4:06 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Re: different forwards from form


That's just what I thought would be best.
But how can I see in my Action which button was hit ?



[EMAIL PROTECTED] schrieb:
> 
> One way is to do a forward from within the action. Ie: both buttons 
> still submit to same action to start with, but if its detected that it

> was a cancel then the action immediately returns an ActionForward that

> forwards the request on to the action/jsp/etc... that you want to go 
> to if they hit cancel.
> 
> -----Original Message-----
> From: Marcus Biel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 16:37
> To: [EMAIL PROTECTED]
> Subject: different forwards from form
> 
> I got a form for editing a data records.
> When I hit "cancel" I want to display an other page then when I hit 
> submit.
> 
> How to do this ?
> 
> thx,
> 
> marcus
> 
> --
> 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]>

--
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]>

Reply via email to