The Artima Developer Community
Sponsored Link

Java Answers Forum
problem in download servlet

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Gopalakrishnan

Posts: 1
Nickname: gopal
Registered: Jan, 2003

problem in download servlet Posted: Jan 9, 2003 6:13 AM
Reply to this message Reply
Advertisement
I am having the following situation
I am having page with two options namely UPDATE and READONLY.if they choose UPDATE option then an databse updation has to be happen and the selected file also get to be downloaded. other wise the file download only happen.
I am calling a Servlet program to the selected download file and for database updation.If file is downloaded sucessfully then only database updation should happen but the servlet is not waiting for any response from the user it continues its execution after the download file dialog is opened and the record is updated even if the user cancels the file download.so i need to change the logic so if uesr presses the cancel button the database updation should not happen.so pls help me to find how to capture the event with sampe code.

Topic: ctrl+c in a java applet? Previous Topic   Next Topic Topic: Class Double.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use