Hi Dinh Nguyen: We had a similar requirement and we solved it using Javascript's location.href .. I reproduce our code below:
<script language="JavaScript"> function confirmPrint(msg){ if (confirm(msg)) { window.location.href ="<html:rewrite page="/BillingReportPrintAction.do" />"; } } //end method confirmPrint </script> So i think you should be able to do something similar (combining it with an onClick method for your submit button..) Hth, Geeta Dinh Nguyen wrote: > Hi, > > Do you know how to do the confirm page using struts? For example, > after a person fill-out a registration form, he/she clicks on Submit > button, she/he will be redirected to a page says that "are you sure > you want to submit information?". If the use clicks yes, button, > then he/she will be redirected back to the home page, otherwise, > he/she will be redirected back to registration form/page if the > cancel button is clicked. > > Thanks, > dinh Nguyen > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]