struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gemes Tibor <ge...@regens.hu>
Subject Re: different forwards from form
Date Tue, 03 Dec 2002 09:10:51 GMT
2002. december 3. 10:01 dátummal Marcus Biel ezt írtad:
> No, my problem is different!

No. Your problem is the same.

> Now if I add a cancel button, it works,
> but also forwards to this same page,
> instead of to the regular start page.

If you add a cancel button, you can handle the cancel event by checking 
isCancelled(request) so you can decide where forward to. 
Simplified:

if (isCancelled(request)) 
	return mapping.findForward("cancel");

And define a forward named 'cancel'. If you do so you will be forwarded to 
this page. 

Tib

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