How to check the status of file downloading?

I have to download the selected file by using "file download" dialogue box.
This "File Download" dialogue box provides options for "Open", "Save", "Cancel" or "More Info". It is similar to usual "File Downloading".
And i am required to do further processing only if , file is "Open" or "Save".
So how can i check the status of the option selected by the user?
Following is the code snippet:
res.setContentType("text/plain");
res.addHeader("Content-Disposition", "attachment; filename=" +value);
try
     uFile= new File(fPath);
     fSize=(int)uFile.length();
     fis = new FileInputStream(uFile);
     c=-1;
     while ((c = fis.read()) != -1)
          out.print((char)c);             
     fis.close();
     out.flush();
     out=null;
catch(Exception e)
       out.println("Exception : " +e);
} I tried to generate a flag and inside a while loop, and then checking the status of that flag outside of loop.
But it doesn't work.
It reflects the value of flag even if user selects "Cancel" Option.
So, if there is any another way of checking the option selected by user from "Open","Save" or" Cancel", then please reply me.
Thanks in advance.

Is there any solution for this or any web link for this...?
Thanks in advance,
Waiting for reply

Similar Messages

  • How to check the number of remaining downloads on DPS dashboard?

    I think that after the renewal of Adobe DPS,
    Professionl/ Enterprise Edition users can chek the number of remaining downloads on DPS dashboard.
    How to check the number of remaining downloads on DPS dashboard?
    shimoawazu

    Is there a way to determine how many downloads have occurred on a professional account?  We have multiple apps on the Apple and Android app stores and would like to know how many downloads from our first 5,000 have been used.  Is there a way to view analytics from all of our apps at one time instead of having to log in to digitalpublishing.acrobat.com separately for each app?
    Andrew

  • How to check the status of an IDoc in the Target system

    Hi Experts,
    we are using a self-made program to send Material and BOMs from Client A to Client B into the same ERP System.
    How can I check the status of an IDoc in the Target Client B (like BD87 - ALE Monitor) ?
    If you have some examples or Function, please give me the information.
    Rewards if helpful.
    Regards,
    David

    Hi David
    As mentioned in the earlier reply you can check your status with tcodes:-BD87,WE02,WE05.What i guess from your querry is the staus of your idoc whether posted or not in target client B.Check in the target client for the message type which you are using (since its an program that means you must be using an customised idoc type or standard) .You might have maintained Basic type tcode:-WE30.Give in your messagetype,Basictype,Created at and executed using tcode :- BD87.The prerequisites are you need to create an Partner Profile(WE20) .For this you need to create to provide in your message type and Process code(we41,we42,we57).If you have to create an process code for customised one(se37) .You need to actuivate the idoc inbound processing .If you are using a file in your file make it sure the port is being maintained for the same to chek for unicode format in tcode :-WE21 (check or uncheck).
                    For standard BOM i recon you are using message type :-BOMMAT  and Processing code as:-BOMM.Its always advisible that instead of using an whole abap program you need to have an ETL tool that would take care of the extraction of data provided your client do have existing Legacy system in its place since it would be much faster and easier.
    Regards
    Somnath

  • How to check the status of Oracle DB?

    I just installed the Oracle Express 10 on LINUX machine. I check the status with
    /ect/init.d/oracle-xe status
    and get followings. How can I tell if the Oracle is running or not?
    [root@s003ap03n-test init.d]# ./oracle-xe status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 19-JUL-2010 10:18:45
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 19-JUL-2010 09:58:46
    Uptime 0 days 0 hr. 19 min. 58 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=s003ap03n-test.proactiv.de)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=7070))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "XE", status READY, has 1 handler(s) for this service...
    The command completed successfully

    Connect with SYS or SYSDBA.
    SELECT instance_name, status, host_name
    FROM v$instance;
    Regards
    Asif Kabir
    Total Questions: *6 (6 unresolved)*
    -- Mark your helpful post as correct/helpful and close all the answered threads.

  • How to check the status on the server

    I have a jsp page which runs a tcl program in the background. This tcl program will generate a HTML file and the HTML
    file will be residing in the server. Is there a way in the jsp to check the status on the server so that the moment HTML file is on
    the server and capture the date/time and display in the JSP.
    Thanks

    If the JSP is on the same server, then you can just use the File class to check that the file exists and get the timestamp of the file.

  • How to check the status of instance in my Process

    Hi,
    I have a requirement where I want to check for the status of an instance and if completes in error then send an email. I've been told that there are Bpel tables where I can check the status and there are also Bpel API's I can use.
    Can you please let me know what is the best way to do this and if so, some guidelines on how do I design this...I'm fairly new to BPEL and would really appreciate your help
    Thanks
    -Prapoorna

    Hi
    First let me explain how I understand your requirement.
    There is a bpel instance. This can either complete successfully or with error (basically some fault has occurred).
    If the process completes with error a email should be sent.
    Well this is how I would design this.
    Put the code that might succeed or fault in a scope. Add catch or catchAll block in the faultHandler of the scope.
    Write the email stuff in the faultHandler.
    Just in case you are still interested you can find the instance state Bpel table details in the below link.
    http://oraclebpelindepth.blogspot.com/2008/08/bpel-process-states.html
    If you are willing to explore the Java API stuff you can find some useful stuff in here.
    http://oraclebpelindepth.blogspot.com/search/label/Java%20API
    This will tell you how to setup context, include which jars and a simple java thing to see some thing working.
    Now regarding state, you can use locator.listInstances(WhereCondition wc) to get instances list in IInstanceHandle[].
    In the IInstanceHandle use the method getState() to get the state of the instance.
    Every Little Helps
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • How to check the status of a job!!!

    Hi,
    i want to check the status of a job and also send a mail when a job is cancelled.
    Is there any function  module which does that , also i want check the jobs across various time periods and not of today....
    Its urgent,
    Answers will be rewarded,
    Regards,
    Rohan

    Hi Rohan,
    You can get job information by <b>calling function "BP_JOB_READ".</b> If you pass the value btc_read_jobhead_only defined in LBTCHDEF, it will only return the
    job header info into the export parameter JOB_READ_JOBHEAD. The job status
    is set in JOB_READ_JOBHEAD-STATUS.
    Alternatively, <b>you can just lookup table TBTCO</b>, the status is in
    TBTCO-STATUS.
    The values in STATUS are defined in LBTCHDEF as follows;
    DATA:
    BTC_RUNNING LIKE TBTCO-STATUS VALUE 'R',
    BTC_READY LIKE TBTCO-STATUS VALUE 'Y',
    BTC_SCHEDULED LIKE TBTCO-STATUS VALUE 'P',
    BTC_RELEASED LIKE TBTCO-STATUS VALUE 'S',
    BTC_ABORTED LIKE TBTCO-STATUS VALUE 'A',
    BTC_FINISHED LIKE TBTCO-STATUS VALUE 'F',
    BTC_PUT_ACTIVE LIKE TBTCO-STATUS VALUE 'Z',
    BTC_UNKNOWN_STATE LIKE TBTCO-STATUS VALUE 'X'.
    Thanks,
    Vinay

  • How to check the existence of file without any error dialog?

    Hi everybody,
    I am trying update some labview programs from LV6.1 to LV7.1, I used the
    function "File/Dictionary Info" to check if the file
    exists or not (if the size=0 then file does not exist), and it ran well with
    LV6.1, but now it shows every time a labview error dialog
    about "LabView: file not found..." with 7.1, if this file dosn't exist.
    Sometimes I feel that it is really stupid to show the dialog, because I
    can write handling by myself, if the error should be handled, and
    I don't want all the process is interrupted because of such dialogs. Is
    there any way to shut the dialog down or check the existence of
    file smoothly?
    Thanks a lot!
    L.Wang

    Hello,
    The dialog is probably appearing because you have Auto Error Handling turned on.  This feature is turned on by default in LabVIEW 7.0.  You should go to VI Properties (Ctrl-I) > Execution and deselect "Enable automatic error handling".  Also you should go to Tools > Options > New and Changed in LabVIEW 7.x and deselect "Enable automatic error handling in new VIs".  If you never want to see one of those dialogs again, you can also deselect "Enaeble automatic error handling dialogs"...I wouldn't recommend this, however, as you would never know if one of your VIs had this setting enabled...you would only find out once somebody else tried to use your VI on another LabVIEW install.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How to check the status of published vi in webpage

    Is there any method, property or way to check the status of published vit in webpage.
    my problem is that i have a continous running vit which i have published in webpage. when user slects some option/button then the front panel of that vit loaded into webpage and can perform different funtion. when user close the page or navigates to another page (means the front panel in webpage is no longer available). i want to know the status of vit, that now user doesnot use this vit so i have to close it.
    regards

    Now i have fixed the issue by using invoke method to check the number of connections.

  • Need help - How to check online status of file?

    Hi.
    I'd like to make my flash app checks whether a particular file is online.
    Let's say this file is 1MB. How do I make it so that when the flash app checks the URL of the file, it won't download the whole thing?
    That is, once the flash app confirms that the file is up, it immediately cancels the download and displays a status message that the file is up. And if there's a 4xx or 5xx message, it will report appropriately.
    I'm a total newbie, so I don't know how to go about this. I'd appreciate it if you could point me in the right direction.
    Thanks.

    you can use the filereference class'es download() method and its listener's onProgress() method.

  • How to check the status of all of the current cache listeners

    Hi,
    Is there a way to programmatically show the status of all of the registered cache listeners?
    The background is that we found only one user (among around 20 users) always stops receiving the events from the cache. However the tcp connection to the proxy server is always alive. We are using .NET client.
    Please provide any suggestions on this issue.
    Thanks
    Mu

    Is there a way to programmatically show the status of all of the registered cache listeners?Not easily. The listeners are managed in a hierarchical manner, so each storage-enabled server keeps track (e.g. per partition) what listeners it has to notify of what events, and each proxy keeps track (e.g. per connection) of what clients it has to notify of what events, and on the client it keeps track of what listener objects it has to deliver what events to. At each level in the hierarchy, there is a data structure that keeps track of this information, and that data structure will typically be an instance of com.tangosol.util.MapListenerSupport. While it is theoretically possible to navigate these data structures at any level of the hierarchy, it's not straight-forward.
    The background is that we found only one user (among around 20 users) always stops receiving the events from the cache. However the tcp connection to the proxy server is always alive. We are using .NET client.It sounds like the client is getting disconnected at some point. To eliminate the obvious (e.g. an event listener getting stuck and never returning), take a thread dump of the .NET process, e.g.
    http://support.microsoft.com/kb/286350
    Next, add the listeners on the client side for the MemberLeft events. If the client does get disconnected, it should get that event.
    Also, turn up the logging level on the proxies (to at least D6) and check the logs when this happens.
    I'd also suggest that you file an SR with Oracle support to track this.
    Peace,
    Cameron Purdy | Oracle Coherence
    http://coherence.oracle.com/

  • How to check the status of TLS cert?

    Hi all,
    Except export (or copy) the cert from the configuration file, and view using openssl, is there anyway / tools to allow me check the TLS / SSL cert is being used?
    As beside checking the cert is using by my IronPort, i would like to check the cert using by my partner as well (although i can configure IronPort to accept trust cert only, i still wanna verify it)
    Thanks for advise.

    You don't need to copy the cert out of your configuration. OpenSSL has an "s_client" subcommand which can open an SSL connection and verify the cert for you. It even knows how to do STARTTLS. Something like this ought to do it:
    openssl s_client -starttls smtp -CAfile /path/to/ca/file -connect your.ironport:25
    The /path/to/ca/file is necessary to provide openssl with a cache of root CA certs. You could use -CApath instead of -CAfile if you have a hashed directory of root CA certs instead of a single file containing them all.
    You can also point this at your partner's SMTP server as well.

  • How to check the status - Locked or Unlocked?

    I was using a iphone 5 unlocked version, and recently i got replaced with a new phone. But now when i check online for the status (http://iphoneimei.info/) if its locked or unlocked it shows me it is locked. Im currently not using any sim card

    If Apple replaced the iPhone and the donor was unlocked lawfully then the replacement should alo be unlocked
    Only Applecare in you couuntry can legitimately tell you of the iphones Carrier status

  • How to check the status of infopackage ??

    hi,
    I have executed infoobject, and i can go to moniter and see the status. but over there it only shows time and no. of records.
    like this...
    Yellow tringle 15:23:23 ( 234 from 120 records )
    does it mean its loading 234 records from 120 records ? that doesnt sound right. for me the second no. is always smaller then the first no.
    also, is there any other way to check whats going on ?  other then Monior????

    Hi honar,
    Yellow tringle 15:23:23 ( 234 from 120 records )
    Yes it means the load is still processing. Once the load gets completed the request will change to Green and the record count will match like
    EX: Green o 15.30.00(234 from 234 records)
    As the load is running you can check the back  ground might be running goto SM37 tcode enter user name and select the active requests and click execute
    or
    From the monitor screen "environment" --> job overview --> in the "source system" it will take you to SM37 screen.
    Check the job log till it finishes.
    If the job finished and still the load is in yellow status - check for the idocs and if they are hung process them manually.
    Regards
    KP

  • How to check the status of my macbook battery

    How can i Check the kwality of my macbook battery??

    Hi and welcome to Apple discussions,
    Click on blue apple top left.
    Then About This Mac.
    Then More Info in the small window that opens up.
    Finally click on Power in the left hand column.
    If you are not sure what it all means copy and paste what it shows into a reply so we can see what is happening.
    Regards from England,
    Alan

Maybe you are looking for

  • Data Mismatching in DSO

    Hi Folks, We  have data mismatch issue for one info object ( BASE UOM ) when the data goes from staging DSO to conformance DSO.I will explain the issue here. For one invoice no the Base UOM value dispayed as M2 in the staging DSO.When the data goes f

  • Problems Installing Java Studio Enterprise 8.1 - Windows Vista

    I am entirely new to the Java language and environment. I am trying to install the JSE 8.1. First I installed JDK 6.4 (jdk-6u4-windows-i586-p.exe), which seemed to go OK. Then I attempted to install the JSE (jstudio_ent81-ml-windows.exe). First, it d

  • What will i do if my email won't update?

    what should i do if my email won't update?

  • Adobe LiveCycle Access Field in Subform inside Master Page

    Hello, I have a Dynamic PDF document created in LiveCycle 8.2 with the following structure topmostSubform           (Master Pages)                   Page1                         sfHeader                                txtName When I try to assign th

  • Reducing AI file size, without converting to another file type CS6

    I designed artwork for a large banner (84" x 32") so my AI artboard is that large. As you can imagine, with all the text and graphics I used, this file size is 22.8 MB. I need to email this art to the printer, but the file size is too large to email.