wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
internet detective

Joined: May 26, 2003
Posts: 30076

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

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: close window after performing action
Similar Threads
problem with window.ShowModelDialog()
How to persist data of child window form
Popups, actions and javascript OH MY!
Help Needed In Events Recognition
Closing child window after executing Action