But if I use mapping.findForward( "done" ); screen is hanging
Do I need to define "done" in struts-config.xml
Thank you for your help.
From: "Nathan Ewing" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: close the window if no errors Date: Thu, 22 Apr 2004 10:40:09 -0400
Just save like you normally would, and when it finishes do a "return (mapping.findForward("done"));", which goes to a page with the following as part of the html code:
<body onLoad="javascript:self.close()">
Nathan
-----Original Message----- From: sudheshna aaa [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 10:31 AM To: [EMAIL PROTECTED] Subject: close the window if no errors
On the click of submit, I need to store the values in the database and if there are no errors, I need to close the window.
Do I need to use <logic:empty> tag to see if the errors are empty---> then close the window
Can somebody provide me the code. Thank you in advance.
_________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/
--------------------------------------------------------------------- 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]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]