Exactly this is what i am looking for. I need to examine the errors object on the child window and if it is empty, I need to close this child window.
Thank you.
From: "Geeta Ramani" <[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 12:05:08 -0400
Hey I think I know what you are looking for. Correct me if I am wrong but here's what i assume you are doing:
You have a "parent" window where somebody licks a link or something which opens a "child" window and the user edits stuff in the child window and then submits it. Off the form goes to an action, and if there are no errors you want the child window to go away and the user to sit looking at the "parent" window. Is this correct?
If so, you can do this.. but first tell me if I am way off-base or something..
Geeta
> -----Original Message----- > From: sudheshna aaa [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 12:06 PM > To: [EMAIL PROTECTED] > Subject: RE: close the window if no errors > > > Team, > > I think I need to have something like this psuedo code: > > <% > if(errors.isEmpty()){ > %> > javascript:window.close(); > <% > } > %> > > Can anybody correct this code? I am getting errors not > defined. I want to > access ActionErrors>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]