File Name when file is opned in the browser

Hi All,
I am trying to open a file a pdf in the browser.The file is opening fine.
But when i try to save the file, insted of the name i specifed in the response header, its displaying the download as the filename. Download is the name of the jsp file in which the pdf file will open
Can I force the browser to save a downloaded file with a name I specify, rather than the name of the URL.
Please help in solving this.
Thanks in Advance,
Madhu

The only workaround I can think for this then is to specify the name of the file as part of the url for it.
Similar to an approach documented here
Basically, you make your url look like: http://myApplication/pdfDownload/myDocument.pdf
You configure your web.xml file to map all /pdfDownload/* requests to your handling servlet/jsp for downloading pdfs.
Then Acrobat reader can just pick up the filename from the url.
Yes its a workaround for jumping through hoops, but it seems that Acrobat reader ignores the content-disposition header, and also (from that linked post) doesn't like parameters with the request string either.
hope this helps,
evnafets

Similar Messages

  • Why firefox 3.6 downloads all of the files again after restartarting the browser from a website if the "clear history when Firefox closed" is not Enabled?

    We have a corporate website, we officially support FF3, FF4, IE8 and IE9. Our web site is quite big, so we really need browser caching, first time page load is around 15 seconds. With files in the cache getting new page is less than a second.
    Everything works perfect except with FF3. With FF4, IE8, IE9 if we are on the website, clicking everywhere is fast, the page is in the cache. If we restart the browser, it is still fast, it loads files from the cache.
    But with FF3 we have a problem. Every time we restart the browser, it is loading the files again from the server, instead of using the local cache (checked with Firebug). I can reproduce the problem anytime, it is the same with every FF3 instances. I double checked, the "clear history when Firefox closed" option is not enabled.
    Could you advise please how to use the local cache either after browser restart?
    Thank you!
    Chris

    Just read that the default memory storage on FF is set to 5 mbs. You can up that by clicking on tools, advanced and overriding the default and set it to 50 mbs (if you use lots of tabs) or 10 mbs (if you use just a few).
    I open a blank tab and clear the cache periodically, while I am working. I can have several tabs open and watch videos on Youtube, by doing this. Have you cleared your cache?
    Since I have an older computer, I've also used CCleaner for years. I use it often, but always before signing off. You can get it free...search for CCleaner, download from Pirifoam free. I didn't change any of the settings and it clears crap left behind from uninstalling programs, clears all browsers at once of: cookies, history, passwords, etc. I love it!
    I had freezing, before using the "open blank tab, clear the cache" thing. Now I have no problems. Plus, as I said...you can change the default memory usage for FF and that should help too.
    Hope this helps! Good luck! :)

  • Swf files that scale with the browser

    I uploaded a swf file with dreamweaver as a stand alone window and it works fine.  How do I get the swf file to scale larger or smaller as the user adjusts their browser window larger and smaller?  I would like to get the swf file to scale along with the browser window.  I posted this in dreamweaver but was told this is an action script issue.

    I found a simple solution, and I believe it is what you are looking for.
    1. In Flash, go to File>Publish Settings
    2. Click on the HTML Tab
    3. Where is says Dimensions, select Percent
    4. Though it is probably default, make sure the width and height are both set to 100.
    5. Click ok then go to File>Publish
    Now your movie should scale with the browser window.
    If you do not have Flash, then you can simple work with this sample code below:
    <object width="100%" height="100%" id="xyz" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="xyz.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <embed src="xyz.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="xyz"
        align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    Notice how width and height are set to "100%"? That's all you need.

  • Since upgrading to Firefox 4 I cannot get PDF files to open in the browser using Acrobat 9.0

    I have my Application options set to "Use Adobe Acrobat 9.0 (default)," yet clicking on a pdf link causes the file to be downloaded and opened outside of the browser.
    I've checked for missing plug-ins, but that only leads me to a download page for Adobe Reader 10, which should not be necessary since I already have the full version of Acrobat.

    In my case it's with .puz files, which are crossword puzzle files used by sites like the New York Times and read by the application AcrossLite. I went into preferences and tried to change the action for the file type from "Save File" to AcrossLite but it would not take. Set it instead to "Always Ask" and then in the dialogue box selected AcrossLite and "always do this" and it gave an unknown error.
    This is FF 4 on a Mac.

  • Uploading the file to server from the browser using JSP

    I have facing difficulty while uploading the file from the browser using user interface to the server or to the database. As previousy i was working in coldfusion, i find it very easy there with cffile command, but i am confused how to do that in JSP
    please reply soon, as i am stuck in my project because of that
    Sarosh

    Check out http://www.jspsmart.com , They have a nice free upload api that can be used w/ JSPs or Servlets. I hear O'Reilly has a nice one too. May as well use someone elses if they've done it already.

  • Javascript not working when pdf is rendered in the browser IE9

    I have a javascript on the initialize event of a field and it works fine when doing a Preview PDF but not when i render the PDF in the browser
    if(F.Page_1.field1.rawValue == null)
               F.Page_1.field1.presence = "invisible";
               F.Page_1.field2.presence = "visible";
    Can some one pelase help?
    Thanks,
    F.Page_1.field1::initialize - (JavaScript, client)

    Hi,
    The initialize event is supported in browsers, but the issue may be if the form is saved as a Dynamic XML Form in the save-as dialog in LC Designer. Or if you using LC Enterprise Suite to render the forms at runtime, if you have set the render in LC Designer: File > Form Properties > Defaults to Dynamic XML Form:
    Changing an object's presence requires a dynamic form.
    Niall

  • Why clip speed and pitch changes when I drag it from the browser to the timeline ?

    In fcpx when I play the clip in the browser it is fine but when I drag and play the same clip in the time line the audio and video clip speed plays slow....and I can hear that weird wobble sound .....why is this happening.....? Kindly help.

    1)I have already done that but in that timeline also with 25 fps specified the clips are playing slow ,leave aside the hay wire going clips....
    2) when I extract exactly  2 seconds of clip from the browser, almost 48 frames ...the extracted clip in the timeline shows two or three extra frames ...that is may be because of the handles ?or some other issue
    3)but when I make a new project/timeline with 25 frames ....and then add clips it works fine....
    definately issue is with the framerate but I will have to begin from scratch of 300 files ...so do you think this already made and copy pasted sequence should work fine in the new timeline as you said ....as it is not working....and secondly does quality of video suffer  if you bring it down from 25 to 23 frames in that case I will work all over again.......just waiting for your reply ...thank you.

  • When I don't have the BROWSER menu option turned on, the WINDOW menu options are un-accessable by mouse

    First of all, I would like to clarify which "menu" is un-accessable.
    I'm referring to the menu that regardless of which program, a user can access by either clicking ALT + SPACE or by clicking the top left corner of the window. I'm NOT referring to the FIREFOX menu options, those I am fine with.
    Normally, I can just move my mouse to the top left corner and double click to close a program. I used to be able to do that too with firefox 3.6. However, due to the new design, when I click the top left corner, I get the orange Firefox drop down menu. This is because firefox, due to the new update, no longer has an independent window bar that is the norm across most programs. The only way I can get this independent menu bar is to enable the browser menu bar. This however, adds two entire layers of bars, which defeats one of the purposes of the update, to give more viewing space
    The Chrome browser also has the tab row on top, however, it doesn't have the issue I brought up. When I click the top left corner of the window, the regular WINDOW menu options pop up.
    The reason why this is important to me is due to the fact that I use two monitors. Normally, I can just move my cursor to the top right and close the window without looking for my right hand side monitor, and then double click the top left hand side of my left hand side monitor to close the window. This is because with a 2 monitor set up, the "X" close button is located inconvinently in the middle of my two screens, forcing me to aim for the tiny small red rectangle, which is why I prefere to double click the top left corner; I don't have to aim.
    I have long been a loyal user of firefox. Browsers like Chrome and others have been out ranking firefox for a long time, mozilla is only playing catch up here...
    While I am glad for the update - better speed due to JaegerMonkey, the added hardware acceleration, the tab groups, and more, if the window menu problem is not resolved soon, this update is going to force me to switch browsers.
    I look forward to a fix, or response on how to resolve this issue.
    Many thanks,
    Still a firefox user... for now

    it's possible but there is likely no need to do this. what exactly is wrong with your computer? a simple reinstall of snow leopard on top of your current system will cure many ills and will preserve your data and applications. and many problems can be solved without reinstalling at all.
    but if you insist on doing a wipe and install boot from the SL install DVD and start disk utility from utilities menu at the top. erase your hard drive using the erase tab in disk utility. then quit disk utility and proceed with the install. and if you do reinstall I suggest you back up your data first. otherwise it will be completely wiped when you erase your hard drive. and you should always back up anyway.
    Message was edited by: V.K.

  • So annoying! When I print just from the browser, it prints unreadably small in the top center of the page.

    I have called support on my actual printer and everything is fine, they suggested to contact the browser I am printing from. Microsoft word and other software prints normal. Any web page I attempt to print from, even when I select the "print page" option, I have this error. I have been through all the troubleshooting to reset defaults.

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile
    What steps have you tried?
    What is the printer model? What driver/version are you running?

  • Losing the audio track when moving a clip from the browser to the timeline

    Today we were trying to add two clips from the browser in Final Cut Express HD to the timeline that was created yesterday. The problem is, the clips we were adding today are not moving with the audio tracks. All other clips from when we created the movie are fine but the two we added today have no sound. The audio works when viewing the clip in "viewer" but not once it is moved to the timeline. Any thoughts?

    Hi(Bonjour)!
    Look at the left side of the time line, there is a device (the patch panel) to set the current video and audio target tracks. (little V1 and a1 a2 icons). Swith them to desired tracks to select the target audio tracks (that's where the video and audio-or just one of them-will be inserted in timeline upon editing). There is also a contextual menu (control click) with reset panel command.
    Michel Boissonneault

  • ISP has floating IP and changes several times a day - how do I set Foxfire to automatically detect and update the IP when I attempt to open the browser?

    If I log off my ISP automatically changes the IP address, when I used Windows Explorer I was able to tell it to automatically detect the new IP so I did not have a problem. With Foxfire I have to manually go out get the new IP and then open the browser - this is a PIA.

    When entering the URL either as your home page or new tab page, I suggest using the full URL https://www.google.com/ since otherwise there is a slight delay as Google redirects Firefox to the secure page.

  • How to Display all xml files at time in the browser

    Hi,
    In my solution , it have one folder contain all xml files onliy like Billersettings.111.2.xml , Billersettings.113.2.xml...etc.
    Each xml file have only one record like biillerid,name,amount,date..etc. Now , when i run the page ,it should be show all files contained in form of gridview....
    i wrote some code , but shows error like.. Root element is missing. My code is here..
    protected
    void Page_Load(object
    sender, EventArgs e){
    if(!IsPostBack){
    String sFilepath =
    "Billersettings" +
    "*" +
    ".xml";
    string[] paths =
    Directory.GetFiles(@"D:\Fiserv\PWSunittest\PWSunittest\BillerSettings\",
    sFilepath);
    foreach (string
    xmlFile in paths)
    dataSet.ReadXml(xmlFile);
    GridView1.DataSource = dataSet;
    GridView1.DataBind();
    }  Please help  me
    Enugu Srinivasulu .NET Developer

    Hi,
    This forum is to discuss problems of C# development. Your question is not related to the topic of this forum.
    I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My popup notification always has the same sender name when receiving Gmail emails, never the actual name?

    I have four email addresses feeding into my Thunderbird (on mac) which I have used for years. In recent months, though, whenever I receive an email, the popup notification gives the sender as a person who occasionally emails me, never any other sender name. Is there any way I can stop this happening? It is annoying!! Thanks

    I have had the same problem and I think I have a solution, at least one that is working for me.
    In mail preferences - accounts - advanced, turn on "Use IDLE command if server supports it"
    In mail preference - General, set Check for new messages: Manually.
    Don't check for new messages manually, (still doesn't work) but wait for the IDLE command to push new messages to you.
    This is for a GoDaddy mail server, using Apple Mail 7.1 on OS X 10.9.1.
    Good luck.
    Edit: sorry I thought this was the GoDaddy thread (similar issues) I'll leave this here incase it works for Gmail.
    Message was edited by: caffeinemedia

  • I've downloaded firefox for the first time. My internet works yet when I try and open the browser it says 'unable to connect'

    I can't seem to get firefox properly running on my computer. I've installed it, I have internet connection, yet when I open a window and try to go on a site, it says 'unable to connect'

    Hello Patrick O' D,
    In my experience t here are two different problems with the speed of firefox on startup
    # your os and setup
    # firefox - and exactly what you use with it
    Some factors will be down to your OS and for instance what does start up initially, many of those factors will affect other programmes/applications and not only firefox.
    Some other factors depend on Firefox and how you set that up, I always like to have the option to using Firebug but realise it cold clash with other software or slow down firefox startup so I only enable it as I need it. see for instance: https://addons.mozilla.org/en-US/firefox/performance/

  • HELP please! I have installed the Firefox Browser Upgrade 6.0.2 at least 8 times. It appears to install fine. But when I go back on the browser, it says I am still using the old version.

    I have also tried iinstalling while my camera is unplugged (Logitech); with my firewall blocked; After re-starting; & still no luck!
    The details are as above. If you need other info, please ask.

    Use the instructions in the following article to reset your User Agent.
    *See --> [https://support.mozilla.com/en-US/kb/websites%20or%20add-ons%20incorrectly%20report%20incompatible%20browser#w_reset-your-user-agent Reset your user agent]
    *What is a User Agent: http://en.wikipedia.org/wiki/User_Agent
    Also see -- > [https://support.mozilla.com/en-US/kb/Finding+your+Firefox+version Finding your Firefox version]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

Maybe you are looking for