Prompt save / open from current location

Hi folks!
I am calling static file from a servlet. how can i prompt the user the standard dialogue box "to save to the disk" or "open it from current location". Now it is just opening the file.
Any help would be appriciated. Thank you.
-sreekanth

You'll want to set the mime type to application/binary and then do something like:
res.setHeader("Content-disposition",
"attachment; filename" +
"Example.doc" );
This tells the client that the file is binary, and to save it to disk with the recommended name. Hopefully, the browser won't try to open it automatically, but will instead prompt the user to save the file.

Similar Messages

  • How do I move a picture so that it can be used in multiple projects without removing it from current location

    I am organizing several hockey pictures and I am trying to make various projects from the pictures and sometimes I want the same picture in more than one project/album/etc.. Each time I duplicate the version in attempts to move just one of the versios, both are moved to new location and removed from current location. I would greatly appreciate help. Thank you

    Piling on  :  read this.  And then read this.
    Think this:
    Projects are _storage_ containers.
    Albums are _viewing_ containers.
    (In mind keep this:  The naming of "Projects" is the worst interface decision made by Aperture's designers.)
    The Image that is created when you import a digicam file is _stored_ in one and in only one container.
    You can _view_ the Image in as many viewing containers as you want.
    Store them by shoot unless you have a better, complete, workflow.  Don't ever move them from their storage container, except to delete them.
    View them by _output project (small "p")_.  Create as many of these as you need.

  • Animation up on mouseover, down on mouseout from current location

    I'm trying to duplicate the way the URL links slide up from
    the bottom at
    http://www.adobe.com/designcenter/
    but being a Flash newbie, I'm getting lost. I tried using a button
    symbol to get the "over" event but that doesn't do a motion tween
    type slide but instead just pops up. Just high-level guidance
    should get me going (famous last words). Is that a graphic and then
    Action Script moving to the next frame when the mouse over event
    occurs or am I over complicating it?
    I've found examples to start animation on mouseover and then
    stop it on mouseout but I'm missing how to get it to go "up" on
    mouseover and then go "down" from it's current location on
    mouseout.
    Thanks for any help.
    John

    Each leaf should be a MovieClip symbol, with the animation inside of the symbol.  The last frame of the animation needs a stop() action on it.  That will keep the leaf at the bottom.  Then its a matter of starting that animation on roll over.
    With AS3, that would look like:
    leaf.addEventListener(MouseEvent.ROLL_OVER,doStartAnim);
    function doStartAnim(e:MouseEvent):void {
         e.currentTarget.play();
    You would add that eventListener to all leaves.  You can loop through them if you use a standard naming structure (like leaf_1,leaf_2,leaf_3,etc...)  If you do that then you can do this:
    for(var i:uint=1,i<=totalNumberOfLeaves,i++){
         this["leaf_"+i].addEventListener(MouseEvent.ROLL_OVER,doStartAnim);

  • Prompt Save before leaving current application

    Hi,
    When a user modified data and click the portal menu, is it possible to give a confirmation prompt for loss change before leaving current application?
    Regards,
    Tony

    Hello Tony,
    what settings do you have in the Portal Personalization for the WorkProtect Mode?
    Regards
    Gregor

  • Import from current location ... when using a memory card

    This thread from a long time ago seems to indicate it can't be done.  Is this still true?
    Re: Lightroom 4.3 won't add to catalog without moving
    If so -- why?  I often use my large CF and SD cards as temporary external hard drives... it would be great to be able to import from them.  This is particularly true on my laptop -- which has limited HDD space, but has a built-in card reader.
    If the issue in the above thread has been fixed, and there is, indeed, a way to import from a card without copying...   how can it be done?  I can't seem to find it in LR 5.5.   The only work around I've found is to import them from an actual HDD on a different system... then I can move that catalog to the laptop and use 'find missing folder' to point the missing folder to the memory card.   Obviously this takes forever and is hideously inefficient.

    It can be done using a plugin like OttomanicImporter (or FileListener), or a script like in MiscLrScripts (e.g. "Choose files via OS and add to catalog.."). - those were written by me, and are free.
    http://www.robcole.com/Rob/ProductsAndServices/
    Rob

  • How do I "save tabs and quit" in this new version of Firefox, as I did in the older version? I want to be able to see the same websites open from the last time I closed the computer.

    In an earlier version of Firefox, when I went to close it, I would get a prompt "save tabs and quit?" that allowed me to see the same websites open from the last time I closed the computer. Where is that feature on the new version of Firefox?

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows or otherwise have problems with restoring tabs.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Using the "Show my windows and tabs from last time" setting is a more reliable way to restore session data.
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Export/Save/Save As..   to current location

    Sometimes when using an application to export, or save a file, the save location defaults to some random location; maybe documents, or a previously saved to folder. Is there a quick way (button) in the export/save window that will set the location to the location the file was opened from, or where it currently exists?

    If you use "Save" the item will be saved in the place the original is. It will overwrite the original, of course.
    "Save As" on my machines reverts to the last place a "Save As" location was selected.
    How would it know where you want to save it to? The best guess is the same place you last saved something. I have hundreds of locations on my computers where I save things. I don't see how the "Save As" function could know where I want it.
    A complicated algorithm might be able to determine the location based on the file type and the number of times a similar file has been saved in a particular place but it would not be perfect because sometimes I save a .txt in a picture directory, etc.
    Maybe this only occurs when using the Export option. Occasionally when opening an existing file, and using Export, neither the default save location, nor the recent save locations are the source file's location. So you must click through to it's location. A simple button that selects the open file's (source) location would be sufficient.
    Like this: http://i87.photobucket.com/albums/k140/graphicaliber/Save-exported.jpg

  • Prompted to Open or Save a pdf File

    Does any one know how this Works:
    What is the security difference between having Acrobat opening a PDF from a webpage inside the browser
    and opening in the Acrobat program.
    I ask because when i have Acrobat opening PDF's inside the browser it
    does not prompt to open/save the PDF file. But when you disable the open
    inside browser, you get the prompt from IE to open/save the PDF first.
    I can circumvent it by placing the site into the Intranet security zone in IE, but this is not a long term solution because Office requires that the site is in the Trusted Internet Zone, if you dont have the site in trusted internet zone, office will
    tell you that the file can harm you computer etc.

    Hi,
    So what do you want to achieve with the PDF files, Let them display inside the browser or open the download prompt?
    PDF open inside browser is managed by add-ons in IE. And if the PDF needs to open in the Acrobat, the file need to be downloaded first.
    Here are two articles talking about this:
    Display PDF in browser
    How do I open a PDF in Acrobat instead of the browser?
    Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards
    Michael Shao
    TechNet Community Support

  • Can't remove photos from album? Photos are stored in their current location, iphoto

    Can't remove photos from  Aperture album unless I send them to Trash? Photos are stored in their current location, iphoto

    There are only a few images that I want to delete, not entire albums. I want to avoid syncing the iPad with the new computer, but it's looking like that may be my only option...to delete all of the iTunes synced photos then start from scratch since I still have the original images on my backup drive. Maybe send them to myself in email/through dropbox and save that way so in the future I can delete at will.
    I just want to avoid all of that, save myself some time, so I figured I'd do as much asking as possible first.

  • Disable prompt when opening document from intranet

    I am developing a new company intranet using Sharepoint Services 3.0 on Windows Server 2003 Standard SP2.
    On my intranet I have a series of links pointing to documents in a library.
    My problem is that for every MS Office file I open I get a prompt box from IE asking '"What do you want to do with this file - open, Save, Save As".  This is going to drive our users mad. 
    What I want to do is turn-off this prompt so that when the user clicks the link it just opens the file.
    I can understand why this prompt would occur when accessing an 'outside' website but it's an unnecessary hurdle on an internal only intranet.
    I am using IE9 on Windows 7 Pro 64-bit but the only 'solutions' I can find anywhere on the web all refer to previous versions of IE & Windows; none of them seem to work with the IE9/Win7 combination.  I should also point out I get a similar
    scenario with the Avant browser, but IE is our company default installation.
    Is there anything in Sharepoint Services that I'm missing that governs how documents etc. are opened from a link in a sharepoint site?

    Yes, it's in the Local Intranet zone.
    It would seem there is an option for this in Sharepoint, called Browser File Handling, but it only exists in Sharepoint 2010, it's not available in Sharepoint Servicves 3.0 which is why I couldn't find it.
    I have now found a couple of workarounds but they are not ideal as they involve editing the Windows registry, and I don't really want to do that on every users computer, but just in case anyone else wants to know here they are.
    Create registry key HKCU\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}
    Create REG_BINARY values in this key for each product required eg. Excel.Sheet.8, PowerPoint.Show.8, Word.Document.8
    Alternatively in HKEY_CLASSES_ROOT set the EditFlags value for each product required to 00 00 01 00.
    As always, recommendation is to back up the registry before changes and don't attempt the above if you're not confident with registry editing.
    If anybody knows of a simpler way to always open files from a Sharepoint site without prompting then I'd still like to know.

  • How to open and save pictures from 1 folder at the same time?

    Is there a way to open and save pictures from 1 folder at the same time?
    I'm creating a vi that resizes the picture but I want to do it with 1 folder at a time... Is this possible?
    greetings!

    Hi Kway,
    Here you are. I wrote a file a customer times ago & It did what you want!
    Just see the attachements and keep me inform.
    Regards,
    Julien Roland - District Sales Manager
    NI Belgium - Technical Support
    Don't forget to rate a good answer
    Attachments:
    Test existing Files.vi ‏23 KB
    Delete files from array of files (SubVI).vi ‏16 KB

  • How to open NEW PORTAL PAGE from current portal page ?

    I'm very confuse with my problem.
    I have 2 portal page.
    portal page I has 2 portlet : portlet A & portlet C.
    portal page II has 2 portlet : portlet B & portlet C.
    Now my customer want : start with portal page I, when i submit portlet A, program will open portal page II.
    I don't know the way to call new portal page from current portal page. Help me, please.
    Thanks.
    Edited by: young_hero on Oct 30, 2008 1:12 AM

    Could you please help me how to call a .html page
    from a Pl/Sql procedure or trigger ?
    Thanks & Regards
    Kalyani KothaKalyani,
    Could you explain a little more exactly what you're trying to acheive? I'm not quite sure what it is you're asking for. Are you asking: "how would you/can you open a browser and direct it to a URL with PL/SQL?"
    Earl

  • WebPartPagesWebService.GetWebPartProperties gives The file is not available. Either the file does not exist or it cannot be edited from its current location.

    Hi,
        I am trying to get all web parts from our sharepoint site by calling web service method GetWebPartProperties of WebPartsPages service. The method works fine for the root page (Home Page) but for pages in sub site i get this in the xml
    node, Outer XML - <WebParts xmlns="http://microsoft.com/sharepoint/webpartpages"><!--The file is not available. Either the file does not exist or it cannot be edited from its current location.--></WebParts>. I am struck here.
    Please help me understand why i am getting this?
    Regards,
    Kalim

    Hi,
    We can do as follows:
    1. Mark sure the page URL is correct.
    2. Check whether current user has permission to access  the page.
    3. Use SPServices to get web part properties.
    http://spservices.codeplex.com/wikipage?title=WebPartPages
    Best Regards
    Dennis Guo
    TechNet Community Support

  • I'm having trouble with "maps" on Macbook Pro, iPad and iPhone.  It shows my current location and hour away from where I am.  As soon as a move iPhone away from my wifi at home to cellular it shows my correct location.  No help from Time Warner.

    What can I do to get "maps" to work on my Macbook Pro, iPad and iPhone when connected to wifi at home.  iPhone "maps" work fine when connected to cellular service. Maps on wifi shows me about 55 minutes away from my current location.  Very frustrating.  I called Time Warne,r my service provider, but they had no answers since they were not knowledgeable of this situation.  Anyone else having problem?  I just updated all devices to newest update.  Is that the problem.

    Did you bring your wireless router with you? If so, it's possible the iPad is getting its location through the router and the router still "thinks" it's where you used to live.
    Try taking your iPad to another location where there is wifi (such as a coffee shop). Then, try an app that uses location services. If it's accurate at another location, then the source of your problem is your router.
    ~Lyssa

  • "Object Picker cannot open because no locations from which to choose objects can be found"

    Hi,
    When I try in AD management console in the domain controller to add a new group for a user I get the following error:
    "Object Picker cannot open because no locations from which to choose objects can be found" error message when you try to select objects from an Active Directory domain in Windows 2000
    Our domain controller is a W2000 cluster (two W2000 advanced server machines) and this happens in one of the nodes of the controller while in the other node it Works well (the difference between them is where it fails, has the resources: print,
    file sharing and quorum services). Both nodes of the controller have the remote registry service disabled and in the node where it fails when you start this service it works well but I don`t think this is the reason because in the other node with remote registry
    service disabled it works. Solutions from the following support articles don`t work:
    kb 263231
    kb 284914
    I have checked that the situation is independent of the domain administrator who tries to add the group to the user.
    Can anybody help me? Which is the reason of this different behaviour from one cluster node to another ?
    Thanks.

    Hi Milos,
    Thanks for your answer but I think this is not the case because the problem is not with NTFS and we don' have these problems:
    Users or groups that have Full Control access cannot delegate permissions.
    Users who have Full Control access cannot make permission changes on a DFS share.
    If you give the non-privileged user the right to log on locally and you log on locally to the file server where the error message occurs, you can successfully edit the ACL.
    It only happens with the AD management console. Now, for us it is not posible to upgrade the system.

Maybe you are looking for

  • Not able to Bind DPS 6.3.1

    Hey, I configured Sun Directory Server 6.3.1 on Solaris Sparc. I'm not able to bind the ldapclient. **DPS Error log says:** 17/Sep/2009:07:36:08 +0000] - BACKEND - WARN - No data source available for ADD,BIND,COMPARE,DELETE,MODIFY, in data source poo

  • Unable to use the focus feature on a field

    hi, I have the need to manipulate the focus event of a field. This is my pdf body structure : form1 ----> form |_ a ----> page |_b ----> textfield |_c ----> textfield The idea is to test if the user pressed the key "ESC", "TAB" or "ENTER" when exitin

  • After upgrade System fail to boot

    Hi, few days ago I did the system upgrade and after reboot i get several errors and the system doesn't boot, the first one in the list is: FATAL could not load "/lib/modules/3.0-ARCH/modules.dep" no such file or directory I think the problem is that

  • Help me recovery HP Envy 15t-j100 plz

    Hi,I'm in a big trouble after reinstalling window 8.1 . My laptop hasn't worked lately And then , I can't log in my laptop . I try to recovery but i have trouble with it I can't choose option " Minimized Image Recovery " and " System Recovery "  I ju

  • Is this correct or not? Can I replace my Master So...

    Hi, We are going to start re-decorating our hallway, and would like to change our master socket for a new clean one, as it was painted over before we moved in, and now looks very nasty. Here is how the phone line enters the house. The outside wire fr