struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: different forwards from form
Date Tue, 03 Dec 2002 08:52:56 GMT
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:Marcus.Biel@bmw.de]
Sent: Tuesday, December 03, 2002 16:37
To: struts-user@jakarta.apache.org
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


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


Mime
View raw message