Firstly, there is a Wiki page that may or may not be helpful:

http://wiki.apache.org/struts/OpenWindowFromAction

On Thu, April 6, 2006 10:24 am, fea jabi said:
> want to open a popup window when the user clicks on a button. how to do
> that?
> do not want to update any fields when the window is closed from where the
> popup window was opened by click of a button.

If I'm understanding you correctly, you want a user to click a button on
some page, which results in opening a new window.  In the new window they
can enter some data and submit it, and you want the window to close when
that submission completes.

To do that, simply forward to an HTML document like this from the Action
that accepts the form submission from the popup:

<html>
<head>
<title></title>
</head>
<body onLoad="window.close();">
</body>
</html>

That should do the trick.  Unless I didn't understand of course :)

Frank


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to