I'm trying to have the current window close if a submit succeeds. It seems to me that I should just be able to have the actionForward specify "javascript:window.close()" but I can't seem to get that to work. All that happens is that I get a 404 error. Is this possible? If I type the javascript into the Address box on the browser, I get the desired result.
If it matters, the exact XML fragment from my config file is:
<forward name="success" path="javascript:window.close()" >
I've tried this with redirect true and false, and even with a path of "'javascript:window.close()'" (extra quotes) all to no avail.
Can anyone out there give me a clue?
If it matters, the exact XML fragment from my config file is:
<forward name="success" path="javascript:window.close()" >
I've tried this with redirect true and false, and even with a path of "'javascript:window.close()'" (extra quotes) all to no avail.
Can anyone out there give me a clue?