Here what you want in the page retrieved after the submit action and reached via this action :
<html> <head> </head> <body> <script language="JavaScript"> <!-- window.opener.location.reload(); window.close(); // --> </script> </body> </html> Regards, Cedric ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <user@struts.apache.org> Sent: Thursday, January 27, 2005 4:34 PM Subject: Re: Popup window submitting to action > Assume you have a form in the parent window that does your refresh, whether it's visible to the user or not (i.e., has nothing but hidden fields). > > Simply do: > > parent.theForm.submit(); > > For that line you weren't sure about. Should do the trick. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > On Thu, January 27, 2005 10:30 am, Brandon Mercer said: > > [EMAIL PROTECTED] wrote: > > > >>There's probably a couple of ways to do this, here's one... > >> > >>I think you can handle the submitting on the popup and closing the window > >> no problem, but before you do the close, call a Javascript function in > >> the parent of the popup that will submit a form to do the refresh of the > >> main page. That's it, simple. > >> > >>That might actually be the simplest answer. > >> > >> > > Thanks guys! I realize this is not a struts thing :-) but since struts > > is a web application toolkit that promotes best practices I figured > > someone on here would be able to provide me with a clean solution. :-) > > Here's what I've come up with... except I don't know how to do the form > > that refreshes me main page. > > > > The form submits... <action="/addcontact"...> > > returns success page in that window. The success page has a: > > > > <script language="javascript"> > > function refreshForm() { > > opener....... (I DUNNO WHAT TO DO HERE) > > window.close(); > > } > > </script> > > <body onload="refreshForm()"> > > > > Thanks for the help :-P > > Brandon > > > > --------------------------------------------------------------------- > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]