Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

close window after performing action

 
janhavi oak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"janhavi78",
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.

Thanks,
Jeanne
Forum Sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic