File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes close window after performing action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "close window after performing action" Watch "close window after performing action" New topic

close window after performing action

janhavi oak

Joined: Dec 23, 2008
Posts: 1

I am using struts 1.2. I have opened a new window to update the price of a commodity. The update query is fired thru the Action class when the update button is clicked. it is a html:submit button. After the query is fired, I wish to close this window. I have already tried using JS window.close() on the onclick event. But then the window closes without executing the query.
Any help on this is welcome.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

We're pleased to have you here with us here at JavaRanch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Forum Sheriff

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: close window after performing action
jQuery in Action, 3rd edition