I'm writing a servlet-based application where
1. A user can download a file.
2. After downloading the file, the same file should be marked as checked-out
3. Meanwhile if user press cancel button, The file should not be marked as checked-out.
In the case of smaller files, if user clicks Cancel button (even on "File Donwload" or "Save As" dialog box); the servlet could not trap this event. And the file gets marked as checked-out.
How can I stop this behavior?
Any help will be appreciated. Thanks in advance!