wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes submit form when closing browser 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 » Engineering » HTML, CSS and JavaScript
Bookmark "submit form when closing browser" Watch "submit form when closing browser" New topic
Author

submit form when closing browser

Kieth Nogins
Greenhorn

Joined: Mar 10, 2006
Posts: 18
hi;
Is there a way to submit a form when the user closes the browser?
I want to be able to know when a user terminates his session by manually closing the browser.

thanx
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Just asked yesterday: http://www.coderanch.com/t/118009/HTML-JavaScript/Browser-Button

Eric
karthi karthi
Greenhorn

Joined: Jun 02, 2006
Posts: 1
Hi , I am also facing the same problem. after pressing the "Cancel" button from the .jsp file I want to remove the session attributes from servlet. so I submit the form to a servlet(where i remove the session attributes) and then coded the script window.close().

Window has closed.

But from servlet I am getting the exception as
"weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request:" If you have an idea please give it advance.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: submit form when closing browser
 
Similar Threads
Submit form and close window
request Attribute doubt?
While closing window wants to submit into servlet
Problem in closing the browser in web forms
JavaScript window close event...