File Download in JSP, Please help

I am wondering if somebody can help me with a problem :
I am trying to register a fact that somebody has downloaded a file
from my company's website.
When a user clicks on the link I provided, a message box came up to prompt user with the location to save the file. How can I register the fact that user press "Cancel" instead of OK. In other words I need to be able to tell whether the guy really downloaded it or not.
Thanks

So, how to determine if user had pressed 'Cancel' or just the connection is broken?
The pure JSP cannot do it.
I think you should have some binary code like applet or active-x to check it.

Similar Messages

  • HT201272 A few songs from my old purchase is not available for download. It shows as purchased but I can't download it. Please help me resolve this problem, what do I need to do to enable download for all my purchased songs/movies etc. - Avinash

    Hi,
    A few songs from my old purchase is not available for download. It shows as purchased but I can't download it. Please help me resolve this problem, what do I need to do to enable download for all my purchased songs/movies etc.
    - Avinash

    The purchases are probably hidden:
    http://support.apple.com/kb/ht4919

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • Created PDF form in Acrobat XI Pro, but HELP fields disappear when I save FCDT file to PDF. Please help. Thanks!

    Created PDF form in Acrobat XI Pro, but HELP fields disappear when I save FCDT file to PDF. Please help. Thanks!

    I am not aware of a field type "Help" within a PDF form. I do not see it as a form field that can be added in the form edit mode.
    Forms Central forms do not support all the features of Acrobat forms.
    Are you talking about the "Tool Tips" or a hidden field that only shows when one enters a field and is hidden upon exiting the field.

  • HOW DO I UPDATE MY MAC OS X 10.4 TO MAC OS X 10.5 SO THAT ITUNES 10 DOWNLOADS PROPERTY? PLEASE HELP!!!

    HOW DO I UPDATE MY MAC OS X 10.4 TO MAC OS X 10.5 SO THAT ITUNES 10 DOWNLOADS PROPERLY? PLEASE HELP!!!

    LilyE wrote:
    There is no free download to 10.5? I was able to download a 10.5.1 but that wasn't helpful since it required a 10.5 to be downloaded first. Any suggestions?
    As provided twice.
    You MUST buy the upgrade.
    It is never free to update to a new OS.

  • HT1553 Hi, I'm stuck at step 9. I don't see my external harddrive when I want to save the DMG backup file. Can you please help me with this? I'm desperate to make this backup! Big thanx in advance!

    Hi, I'm stuck at step 9. I don't see my external harddrive when I want to save the DMG backup file. Can you please help me with this? I'm desperate to make this backup! Big thanx in advance!
    http://support.apple.com/kb/HT1553

    Repair permissions and restart your computer.  If this does not work, zap the pram.  You should now see your external hard drive. 

  • Hello i am rajesh i am having problem while conveting other files into pdf format please help me

    i am rajesh i am having problem while converting other files into acrobat format please help me

    Hello Rajesh,
    I'm sorry to hear you're having trouble. Are you using Acrobat.com to convert your files to PDF? Please let me know where you are having trouble and I will do my best to help you convert your files. For your reference, here is a list of filetypes that can be converted to PDF online with Acrobat.com:
    http://kb2.adobe.com/cps/524/cpsid_52456.html#Create%20PDF
    Best,
    Rebecca

  • I am trying to stream music from my iMac using iTunes music files to my Cocktail Audio X10 music streamer. I have allowed my files to be shared the X10 sees the files but when I try to accsess them it gives me the message files not mounted. Please help?

    I am trying to stream music from my iMac using iTunes music files to my Cocktail Audio X10 music streamer. I have allowed my files to be shared the X10 sees the files but when I try to accsess them it gives me the message files not mounted. Please help?

    No, I have the music I want to move from the laptop to the phone selected. Then I go under file, devices, and try to click sync but it is not available to click.

  • Acrobat Pro XI crashes upon opening after downloading CC.  Please Help?

    Acrobat Pro XI crashes upon opening after downloading CC.  Please Help?

    Hi PgrimshawMVP,
    You can try this. Not sure if this will definitly help but I hope this should:
    Delete the following preferences folders:
    a) ~/Library/Application Support/Adobe/
    b) ~/Library/Caches/Acrobat/
    c) ~/Library/Caches/Acrobat/
    d) ~/Library/Preferences/Acrobat Distiller Prefs
    e) ~/Library/Preferences/Adobe/
    Here ~ represents your home directory. Empty your trash, Restart the machine and then start the Acrobat.
    Thanks!
    Eshant

  • HT4972 I can't update my iPhone 4s to iOS 6...it's showin error 3259....n unexpectedly stopping wen Download...please help me

    I can't update my iPhone 4s to iOS 6...it's showin error 3259....n unexpectedly stopping wen Download...please help me

    try turning off your pc anti virus and firewall. i use kaspersky and i always have to disable it when there is a new apple update other wise i get the same message... dont forget to turn it back on when your finished.

  • I receive the below error when imprting an .eex file .... please help

    I receive the below error when imprting an .eex file .... please help
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Business Area with identifier 'WFS_Fixed_Assets'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Business Area with identifier 'WFS_Fixed_Assets'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Business Area with identifier 'WFS_Fixed_Assets'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Business Area with identifier 'WFS_Fixed_Assets'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Business Area with identifier 'WFS_Fixed_Assets'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Folder with identifier 'XXWFS_FA_ASSETS_V'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'ASSET_NUMBER'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'DATE_PLACED_IN_SERVICE'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'DEPRECIATION_AMT'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'DEPRECIATION_METHOD'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'DESCRIPTION'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'LIFE_IN_MONTHS'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'ORIGINAL_COST'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'PERIOD_NAME'
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex:Access is denied trying to modify the Item with identifier 'YTD_DEPERIATION_AMT'
    Import completed, but with warnings. Please check the result.
    File(s) imported partially :
    C:\Documents and Settings\skarnam\Desktop\WFS Fixed Assets BA.eex

    Hi,
    You don't say what components you are trying to import into the EUL. But it could be that you are importing a business area which has security access granted to a user that is not defined on the target system. It could also be that the user you are using to do the import does not have admin access to all the components you are importing.
    Rod West

  • I am using iphone 4 (MC603B, version 4.3(8F190) and never updated it. as i have formated my laptop; i have to download itunes again. please help me to download itunes which suits this version. where can i get the link. thank you.

    I am using iPhone 4 (MC603B, version 4.3(8F190) and never updated it. as i have formatted my laptop; i have to download iTunes again. please help me to download iTunes which suits this version. where can i get the link. thank you.

    Older iTunes versions can be downloaded here: Apple - Support - Downloads
    Follow these steps to get your data to your new computer:
    Syncing to a "New" Computer or replacin…

  • I have windows Vista and can't download itunes 10.PLEASE HELP!, I have windows Vista and can't download itunes 10.PLEASE HELP!

    I have windows Vista and can't download itunes 10.PLEASE HELP!

    I also have a 32 bit system. Is it not compatible for that?

  • I was listening to a you tube clip.  i guess i didn't click off the actual clip, because now when i turn on my computer the clip audio plays. i can't locate the file to delete it. please help.

    i was listening to a you tube clip.  i guess i didn't click off the actual clip, because now when i turn on my computer the clip audio plays. i can't locate the file to delete it. please help.

      Quit Safari.
      Hold the shift key down and relaunch Safari.
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Best.

  • Filename on file download from jsp

     

    This may help:
              ----- Original Message -----
              From: "Erik Lindquist" <[email protected]>
              Newsgroups: weblogic.developer.interest.jsp
              Sent: Wednesday, June 28, 2000 6:20 PM
              Subject: How to dynamically display images in JSPs
              > This took a little while to figure out so I thought I'd share. After
              > doing some research I was led to the following approach on how to load
              > images from an Oracle database into a JSP:
              >
              > The "main" JSP:
              >
              > <HTML>
              > <head>
              > <title>Image Test</title>
              > </head>
              > <body>
              > <center>
              > hello
              > <P>
              > <img border=0 src="getImage.jsp?filename=2cents.GIF">
              > <P>
              > <img border=0 src="getImage.jsp?filename=dollar.gif">
              > <P>
              > world
              > </body>
              > </HTML>
              >
              >
              > And this is the image getter:
              >
              > <% try {
              > response.setContentType("image/gif");
              > String filename = (String) request.getParameter("filename");
              > java.sql.Connection conn =
              > java.sql.DriverManager.getConnection("jdbc:weblogic:pool:orapool"); //
              > connect to db
              > java.sql.Statement stmt = conn.createStatement();
              > String sql = "select image from testimage where filename = '" +
              > filename + "'";
              > java.sql.ResultSet rs = stmt.executeQuery(sql);
              > if (rs.next()) {
              > byte [] image = rs.getBytes(1);
              > java.io.OutputStream os = response.getOutputStream();
              > os.write(image);
              > os.flush();
              > os.close();
              > }
              > conn.close();
              > }
              > catch (Exception x) { System.out.println(x); }
              > %>
              >
              >
              > The thing to note is that there are no <%@ page import="..." %> or <%@
              > page contentType="..." %> tags - just the single scriptlet. It
              > seems that for every "<%@" the weblogic compiler sees it puts
              > out.print("\r\n"); statements in the generated java source.(???) I
              > don't know much about how browsers work but I think that once it sees
              > flat ascii come at it it treats everything that follows as text/plain
              > which is incorrect for the binary stream that's being sent. Another
              > work around was to set out = null; but that's kind of ugly and might
              > produce server errors. The real fix is to write a bean to handle images
              > which I'll work on next (does anybody have any hints on how to do
              > that?)
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Ramesh" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > Even I could download the files with this technique, I couldn't open the
              file downloaded. It seems the file is getting currepted during tranfer.. Can
              u help me in this regard please?
              >
              > Thank u
              > Ramesh
              >
              > [email protected] (Anders B. Jensen) wrote:
              > >In an Web-application written in Java Server Pages it should be possible
              > >for the user to download data from the web-server. The data will never
              > >exist as a file on the web-server, only in the PrintWriter object, out.
              > >To force the Internet Explorer (IE) to show the download dialog window
              > >the Contenttype of the HTTP-header have been set to "html/transfer". The
              > >question is:
              > >
              > >Is it possible to set the filename appearing in the download dialog
              > >appearing on the client?
              > >
              > >
              > >Below is a listing of the source-code:
              > >
              > ><%@ page extends="com.beasys.portal.admin.PortalJspBase"%>
              > ><jsp:useBean id="download" scope="session" class="dk.lec.DownloadData" />
              > >
              > ><%
              > > String tmpstr;
              > > response.setContentType("html/transfer");
              > > out.clear();
              > > tmpstr=download.getStrbuffer().toString();
              > > out.println(tmpstr.trim());
              > >%>
              > >
              > >
              > >Anders B. Jensen
              > >Consultant, Research & Development
              > >LEC AS
              > >
              > >Remove the SPAMLESS to mail me.
              >
              

Maybe you are looking for

  • Firefox 4 will not start on Windows 7 64bit

    I just upgraded my installation of FF3 to FF4 and the installation seemed to go off without a hitch. I left the "Launch Firefox now" button ticked and hit finish. Then nothing... I can see that the process is being started (from Task Manager), but it

  • Apex 2.2 - Correct Broken html code displaying ( " /html" )  due to data

    Yes. We are running version 2.2. Apex 4.0 isn't an option right now. French characters are causing the broken code "</html" to display at the bottom of the page when the data is pulled from the database. I have tested the page with non-french charact

  • Open differents subvis on own main vi.... is it possible?

    Hi Guys, I have a litle dude. I have a very good application and works well,  i have main vi, it takes differents bottoms to open subvis with differents options or applications, but the problem is when i do the executable file, on xp open 2 files on

  • System Preferences Icon renamed .de0115.0e8.  Also can't drag & drop

    Thanks in advance for your help. For whatever reason, when I roll the mouse by my doc it displays the name of the program which corresponds with the icon. All of a sudden system preferences has been renamed: .de1150e8. Also, I can no longer drag and

  • Icloud control panel for my macpro, How?

    How can I get an icloud control panel for my MacPro. I have one for Windows 7 and I have my MSOutlook contacts on the Apple cloud from there, also my iphone and ipad2.  It seems like it should be an easy thing to have my MSOutlook contacts on my Macp