To display a message after respose.redirect download

Hi All,
I have jsp page where in the only code I have is a <%
response.sendRedirect("/cz_CZ/songs/angelique_song.zip");
%>. Now this starts the browser download window and asks the user to download the zip file.
Now, what i want is once the user completes the download I want to display thank you message. I don't mind using javascript. How can I do it?
Thanks in advance for your help.
THanks!
harsh

The only way I see this working is with some crazy ajax polling logic.
1) create a servlet that will pump the data from the server to the client in stead of directly linking to the file
2) load this servlet in a hidden iFrame so that your main page stays untouched
3) when the servlet is done transferring the file to the client, set some flag to true, for example in the session
4) in the webpage, use Ajax to poll (can be done with a javascript timer) for the status of the flag. Once it is true, display the thank you message
JQuery has an easy Ajax routine to use. You can create a simple servlet that will output the value of the flag to the response and read that out using an Ajax call.
[http://api.jquery.com/jQuery.ajax/|http://api.jquery.com/jQuery.ajax/]
I'm pretty sure this technique can work, but I've never implemented it so I'm not 100% sure.

Similar Messages

  • How to Display a message after inserting row in table............

    Hi
    I want to display a message after inserting rows in table like *'you have inserted a new row successfully*'.
    i am using the createinsert ADF Button to insert the rows in table.after that i am comitting it.
    after commiting i want to display message for the user.for this what i need to do.
    Please help me.
    Sailaja.

    user10860137
    Can you please explain me the each line in the code briefly.
    +public String saveButton_action(){+
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    +// note "!" operator has been removed from the default code.+
    +if(operationBinding.getErrors().isEmpty()){+
    FacesContext ctx = FacesContext.getCurrentInstance();
    FacesMessage saveMsg = new FacesMessage("Record Saved Successfully");
    ctx.addMessage(null,saveMsg);
    +}+
    return null;
    +}+
    And i have requirement to show the message on favcet "status bar".not in a popup window.(from the above code the message is showing in popup window. )the Layout i am using is PanelCollection.
    can you tell me what i need to do.
    Thanks
    Sailaja.
    Edited by: sj0609 on Mar 19, 2009 8:03 AM

  • HT1926 I keep getting the following message after attempting to download and install the latest update for iTunes: missing MSVCR80.dll.  error 7 (windows error 126)

    I keep getting the following message after attempting to download and install the latest update for iTunes: missing MSVCR80.dll.  error 7 (windows error 126). Anyone else having this issue? How do I get iTunes back in working order?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • WMV attachments not displaying in messages after QT 7.5.5 update.

    My mother gets a lot of attachments from family, specifically videos in windows media video format. According to her, the WMV attachments used to display within the mail messages (without having to download them). This worked correctly, previous to the new Quicktime 7.5.5 update, however after the update, it now only plays the audio from the videos (however saving the attachments and actually opening them in Quicktime works fine).
    She is using a Mac Mini, but she has forwarded some e-mails to my iMac and I get the same results. Both computer are running the same versions of Leopard, Quicktime, and iTunes (all the newest versions). Flip4Mac has been installed on each machine before and after the issue, and I updated that to latest version as well to see if that would fix it, but it didn't.
    Any suggestions? Thanks.

    Greg,
    Received and thanks!
    I can replicate the problem, but found out that I have not yet installed Flip4Mac on my other computer, and have not had time to test in any but my primary boot volume. When I control-clicked on the attachment and selected to open with WMV, I got a message that my Flip4Mac was out-of-date. But updating did not correct the problem as others have found
    I will need some time to chase this some more, and to raise a flag about it.
    Ernie

  • How to display a message after a successful save

    Hi,
    Iam trying to save some data in the backend. After successful save it should show a message as " The data is successfully saved. The product you have saved is : xxxx". Now my question is what should be used to show the message.
    Would it be better to use a dialog box or a different view to display the message or something else.
    Could someone help me.
    Thanks,
    Suvarna

    Hi Suvarna,
    Please try this to show the Message,
    *wdComponentAPI.getMessageManager().reportSuccess("The data is successfully saved. The product you have saved is : xxxx");
    Regards,
    Ramganesan K.

  • How to display a message after button press ?

    Hi,
    I created a jspx page with a button.
    When that button is pressed, a lot of stuff is going to happen in my backing bean.
    This can take up to 30 seconds. (soap call etc ... )
    Meanwhile, the pressed button stays greyed out. When the action is finished, the button
    is available again.
    I want to display a message saying the action was succesfull or not, after that button is available again.
    Can anyone help me how I can make this ?
    Greetz.

    Why not opening a popup from your backing bean?
    Add a popup to your page:
    <af:popup id="yourID" bindings="#{yourBean.popup}">
    </af:popup>Open this in your backing bean:
        public void OpenPopup(String popupID) {
          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
          service.addScript(facesContext,"AdfPage.PAGE.findComponent('"+this.getPopup().getClientId(facesContext) + "').show();");
        }This way you can add anything you want in your popup. forms, messages, images,...

  • AppleSync Error message after trying to download latest itunes.

    After trying to download the latest version of itunes 10.5 to update iphone and ipad with ios5 i now recieve the following error message when windows is downloaded.  I am using windows 7 and cannot open google chrome.
    'AppleSyncNotifier.exe - Entry Point Not Found': The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.
    Any idea on how to fix this and finally down load the itunes and ios5.
    Thanks

    What does the error message say? (Precise text, please.)

  • How to display success message after Remote service call

    Hi ,
    I am currently using Flex form for adding/updating user
    personal details.On submit button click ,i am submitting details to
    server by calling RPC remote service.For calling remote service i
    am using penneframework. On penneframework, Remote service call
    result are populated in RemoteResult object. It dont have any other
    event method for handling result event.For errror handling, i have
    defaultHandler for displaying error message.
    Here i am having two requirements
    1. I should be able to track RPC response, so that i can
    display success message to user along with DB generated ID.
    2. I need to reset all form field after receiving RPC
    response.
    Here my question is
    1.How i can track server response, so that i can display
    success or error message.
    2. Is their any event or coding technique which i can use for
    solving this issue.
    Thanks
    Kumar

    you can do following way :
    quote:
    var token:AsyncToken =
    YourRemoteClass.remoteMethod(param1,param2);
    token.addResponder(new AsyncResponder(
    function(data:Object, token:Object):void {
    // tadaaa response
    function(info:Object, token:Object):void {
    //ooooo , noo, failure
    token

  • Error message after trying to download the new photoshop update

    I have attempted to download the new update for photoshop cs6 several times .. after downloanding and installing i get an error message U44M1P7 at the end of each attempt .. it appears to be fine until after the download is completed ... i have tried reloading the photoshop and it will errors out ... any suggestions? it is on the new features ... Thank You ... Terry

    Try this manual download link, it worked for me.
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5595&fileID= 5604
    Scott

  • Error Message After Completed iTune Download on Vista

    I am a new user of Apple Products. I am experiencing difficulty downloading iTunes to my PC (Vista) system. After a few minutes of downloading an erro message appears "Could not access network location %APPDATA%\" Could someone help me resolve this situation?

    Try this manual download link, it worked for me.
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5595&fileID= 5604
    Scott

  • HT1926 I keep receiving a message after attempting to download itunes on my new computer. It states that an error has occurred during installation before iTunes could be configured. Help please!

    I have tried to download iTunes five times this afternoon to my new computer using both Fire fox and Explorer. Each time after it downloads I receive a message stating that an error has occured before the installer was able to be completed. I turned off the pop-up blocker like support suggested and I am running Windows 8.1, does anybody know how to fix this?

    Follow the instructions of tt2 given in: https://discussions.apple.com/thread/5822086

  • I am getting a sync failed error message after trying to download my settings.

    After upgrading to 2014 version my settings did not migrate. I have maintained my settings by uploading all my current settings recently, but each time I try to download I'm getting a "sync failed" message.

    Hello, MommaLloyd24. 
    Thank you for visiting Apple Support Communities.
    Here are the steps I would recommend going through as they should resolve the issue.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    Jason H.

  • App Store update button displays bug message after updating, iOS 6.0

    In iOS 6.0, after updating an app in the App Store, a weird message appears on the update button.
    The button remains active giving the choice to update twice or more.

    Dude there are many bugs in ios 6 it is not safe to use.

  • Mail displays blank messages after upgrading to mavericks

    In Mail some, but not all emails display with no content at all. This is extremely frustrating and embarrassing when I have to tell my clients I can't read my email!
    Has anyone else got this? Is there a solution?
    Thanks

    I have worked it out a bit.
    I can now read my emails.
    The problems only occurred to emails with rules applied to them, and the particular client I was having issues with was nested within another folder.
    I had done some housekeeping and moved all my filtered clients emails into a parent folder named 'clients' with all subfolders within named after the particular clients.
    I have now dragged the child folders out of the parent folder and can now read my emails. I have no idea why it caused these problems, I have a 'suppliers' parent folder with supplier child folders within and they're all visible.
    Frustrating, but at least I can do some work now…

  • I got this message after trying to download a movie: an unknown error occured (-50). please check that the connection to the network is active and try again. I'm pretty sure that my internet is connected, especially since I downloaded a song before that.

    Like I said, I'm pretty sure my internet is connected as I just downloaded a song right before I tried to download the movie. The extras for the movie downloaded by the way, but not the actual movie. Any ideas?

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

Maybe you are looking for