struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gemes Tibor <>
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. 

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

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


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message