If you use this code you will be able to get the referense to the window. <script langauge="javascript">
window.opener.document.forms[0].updateFromNames.value="true"; window.opener.document.forms[0].submit(); window.close(); </script> ----- Original Message ----- From: "Daniel Jaffa" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 12:33 PM Subject: Re: Windows in struts > ok all u need to do is using javascript submit the parent page and depending > on how u have your action set up, populate the new parent page > ----- Original Message ----- > From: "Bhaskar Gopalan" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Tuesday, April 02, 2002 12:08 PM > Subject: RE: Windows in struts > > > > Hi, > > thanks. I know how to do it using javascript when I do not use struts. > > The problem now is that the link on the parent window points not to > > a jsp (in which case it is easy) but to an action class. > > > > -GB > > > > -----Original Message----- > > From: James Mitchell [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, April 02, 2002 12:07 PM > > To: Struts Users Mailing List > > Subject: RE: Windows in struts > > > > > > You can't control a client side web browser with a server side process. > > > > You will have to use JavaScript (or vbscript if you want to limit > yourself). > > > > I can provide a working example if you like. But just know that I will > > steal the script from some example that is already in use on the web. And > > it may be a day or two before I can get to it. > > > > Your best bet is to find such an example (e.g. yahoo mail) and do it > > yourself. It will give you a new appreciation for JavaScript ;-) > > > > JM > > > > > > > > > > > -----Original Message----- > > > From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, April 02, 2002 11:51 AM > > > To: Struts Group (E-mail) > > > Subject: Windows in struts > > > > > > > > > Hi, > > > > > > I have a jsp that contains a hyperlink which opens a new window(filter > > > Window). The link > > > points to a action class that inturn opens the window. Now, when I am > done > > > with this window, I want to close it and display the changes in the main > > > window. > > > This is not happening and the results are displayed in the new window. > > > > > > How do I tell struts to display results in the parent window? > > > > > > Thanks, > > > Bhaskar > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>