Incorrect file name when downloading an attachment on MSIE 6.0

Hi guys,
Need some help, please,
In a web application on a user request a CVS file is generated with a servlet.
The problem is that when the user press the download button in the file dialog appears an incorrect file name ( instead of the right one, the name of the struts-action ), this is happening only in MSIE, with Firefox is working ok.
Here is the snippet:
response.setContentType("application/download");
response.setHeader("Pragma","");
response.setHeader("Cache-Control","");
String externNo = "some_file_name";
response.setHeader("Content-Disposition", "attachment; filename=\""
+ externNo + ".csv\"");
... setting the content ...
I've found lots of topics about this subject, and try different settings for servlet header ( Cache-Control - public,etc), but still without success.
Can this be from a server setting?? We have 2 j2ee serversone on linux and one on windows. And the problem is only for the linux server, which I'm not sure if it have the same configuration.
Thank You
A nice day!
Bogdan

Hi,
In the file dialog should be "some_file_name.csv" but is "saveorderincsv".
Here is the code from jsp:
   function savePressed() {
       top.location.href = '/b2b/saveorderincsv.do';
       return true;
<input
     class="green" type="button"
        onclick="savePressed()"> .....
config.xml:
<action path="/b2b/saveorderincsv"
     type="com.moeller.isa.action.salesdocs.SaveOrderToCSVAction">
               <forward name="success" path="/b2b/saveorder" />
     </action>...
web.xml:
<servlet>
  <servlet-name>SaveOrderToCVSServlet</servlet-name>
<servlet-class>com.moeller.isa.servlets.Z_SaveOrderSimulateServlet</servlet-class>
     </servlet>
<servlet-mapping>
          <servlet-name>SaveOrderToCVSServlet</servlet-name>
          <url-pattern>b2b/saveorder</url-pattern>
     </servlet-mapping>
....I've also try with "application/x-download" and without quotes, but still the same error.
10x
Bogdan

Similar Messages

  • Same file name when downloading new pics

    The prev camera I had (Sony Cyber shot/Steady Shot?)always kept dynamic file numbers/names however now have Nikon D90 and now if do search on a file number now get numerous pics under same file name as new camera restarts at same number all the time.
    Is there an easy way to deal with this. I would really not want to have to rename all files as soon as I download them. That can be over 300 pics at a time.
    Any help would be greatly appreciated! Thanks!

    When I say file name I mean the name/number that appears under the pic in iphoto.
    Yes that is the file name
    Do most people leave these numbers or change them, do you know?
    Most people leave it - some preprocess all photos and assign meaningful file names and then import
    I know you can assign words to them and then retrieve them by calling up all pics associated with that word(s).
    You can assign a title (which can optionally be used as the file name when you export photos), a description, keywords, and a rating
    Do you have any other hints for me? Do you use the Mangler software you referred to in the prev post?
    Normally I do not modify the file names - if I get photos from someone else I usually use name mangler to identify the source (which I could do with keywords but for photos that are not mine I prefer having the file name show the source) - once in a while I will change some but normally I just import directly from the camera and ignore the file name
    LN

  • Incorrect file name when importing pictures from camera

    I am using PE 10 on Mac Snow Leopard.
    When I import pictures from my camera and select "Rename Files" with "Custom Date" + "Shot Date" (any format), the file name includes the custom name correctly, but the date part of the file name is some random date (with a weird year: 1913, 1969). Note the example shown on the Photo Downloader is usually the one used. The shot date in the meta data is usually correct. This appears to be similar to a problem when using the "Create Subfolder" option.
    Any ideas why or a work-around?
    I was using PE 8 and did not have this problem.

    Hi dannrendon2,
    Have you successfully run the PSE10_Hot.dmg file? You will not see any change in PSE10 or PhotoDownloader , it is just for fixing the issue of incorrect date format .
    Please follow all the steps mentioned in KB article link mentioned above. Finally when you installed the updater there would be a message of successful installation .
    If there is a failure in your updating process [In your case it is second attempt of updation, there may be a failure] , uninstall your application , check if there is any residual file in application folder under Elements Organizer or Photoshop Elements (delete them). Now again install PSE10 and try to update PSE10_HotFix.dmg updater. There should be a successfully completed message.
    Thanks,
    Nizam

  • Incorrect file name while downloading it with JDK1.4

    Hello people!
    I'm facing a strange problem in my downloading servlet with JDK1.4 and Tomcat4.1 when trying to set Cyrillic file name: download window pops up with some abracadabra name. After I click "Open" twice the file opens correctly. It never happens with JDK1.3.
    Some backward compatibility feature from SUN???
    Here is the code:
    res.setContentType("application/octet-stream; charset=windows-1251");
    res.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");

    I'm almost sure it's a bug in Tomcat 4.1. All you have to do is to switch from 4.1 to 4.0 and the problem is fixed. We also checked what line goes to the response header - it's correct.
    Did I mention this problem happens even with Latin charactes? The file name is correct but download box opens twice.

  • Firefox doesn't reconvert special characters in the file names when download a file with any special characters in the file name

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/815207]</blockquote><br>
    if i try to download a file with any special characters in file name (e.g. File_Name.pdf), it doesn't reconvert them from the "sanitize url" process and download the file an incorrect name (e.g. File%5FName.pdf).
    This is really annoying.
    Thank you for your patient

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • Safari 5 stopped prompting for file name when downloading.

    Hello,
    On Safari 4, when I clicked a download link, Safari always prompted for a file name, so I could change it before starting downloading, I installed Safari 5 and "this" feature dissapeared. Can anyone help?
    Thank you in advance,
    Alex

    Works for me: Right-click on the Paint.NET download file here. http://www.dotpdn.com/downloads/pdn.html
    It opens a menu. I click Download Linked File As... and change the name. It downloads.
    What experience are you seeing?

  • Bug:Downloading pdf file from the web,file name in dialog box populates with incorrect file name

    Hi Gurus
    When downloading any pdf file from the web using adobe Reader X the file name dialog box populates with incorrect file name
    compared to the saved file name of the document downloaded.
    Clarity
    1. Download any pdf file from the web
    2. Click File, Save as note the populated File Name
    3. Compare the populated file name with the saved file name of the documant yuo are downloading.
    4. The file Name is incorrect...
    Is there any work around on this issue?Can someone please help?..
    OS:Windows7
    Reader: Adobe Reader X
    I've tried a couple of other versions and still get the same results...

    Are you downloading the file (right-click, save link as), or just opening it by clicking it?
    If the latter, then what happens is the file is loaded to the temporary internet files folder by IE and assigned a temporary name, which is then used when you're trying to save it.
    You can test this out by going to File - Document Properties before trying to save and looking at the file's location.

  • I have got a TROJAN from your webbside when I uppgrade. File name W97M/Downloader.afp!!  What to do?????

    I have got a TROJAN from your webbside when I uppgrade. File name W97M/Downloader.afp!!  What to do?????

    This is a user to user forum.
    Use the contact page to get a hold of Adobe and give them as much detail as possible on where you received the virus. It is possible that the virus became active about the same time you downloaded from Adobe making you think that is where it came from. But viruses have been known to activate after a set time. That may or may not be the case for you, just making you aware that something else could have been the culprit.

  • Incorrect file name within folder

    I have saved a series of Captivate v4 projects in a folder. I have saved the projects with their relevant names. I have updated the project info details on each project to correctly reflect the name of the project chapter etc.
    Can anyone explain why then, when I place my mouse pointer over any of the projects in the folder, for example "CBT Ops Aware KN Login v2_4 Ch6", the pop up "info" window shows the title "v2 KN LoginBooking Sea with OL-C-CBT...." ? This is the name of another project I created, but back in Feb 2010 !.
    Where is this "old" file name coming from and why is is attached to an unrelated project ?
    NEL

    I followed (to the letter) your instructions and it did not fix the issue.
    However, after having tried your suggestion, I did a right click on the project, and in Properties/Summary I can see the "incorrect file name:
    I might have copied and then edited the new project titled "CBT Ops Aware..." from an old project titled "v2 KN Login..." as displayed now in the Summary Title panel, so maybe this is where it all stems from.
    Whilst this is not a show stopper, any ideas why the new project has not overwritten the old project name in the properties summary panel ?
    Could it have other knock-on effects ?
    Noel

  • How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard

    How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard, please see the attached screenshot for a clearer explanation.
    I understand that if we prefix all files with leading zero's this will probably resolve the issue but I just wondered if anyone new the answer. The ironic situation is that version 6 has no problem.
    I have spent over an hour with techincal support who were unable to provide me with an answer

    It is not clear how you are trying to do the order. Have you tried to select a set of files and then use the arrow buttons to move them in the list? If you select the heading, that will typically reorder the files by that heading and undo everything you had done before.
    You should be able to select groups of files and move them up and down in the list. All of those options appear on your view, so what is the real question?

  • Incorrect file size in download list

    Incorrect file size in download list.
    Use russian localized Safari. If I download file and it size is 12 Mb then Safari show 12 Gb!

    Hi
    You can try the following approach.
    First you can download all the records to one file and than using the following 
    CL_GUI_FRONTEND_SERVICES => FILE_GET_SIZE
    You can find the size, when you have size value.
    You can do division as per your requirement and loop the internal table and download accordingly
    Regards
    Madhan

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How do I get my photos to sort by file name when sync'd to the iPad?

    How do I get my photos to sort by file name when sync'd to the iPad?  The default sorting method changes the order of pictures when sync'd from my pc.

    http://support.apple.com/kb/HT4221

  • Get file name of an email attachment with sql query

    Hi all,
    How can I get the file name of an email attachment with a sql or pl/sql query?
    Thanks in advance.
    Edited by: JonasZzZz on Sep 14, 2009 10:52 AM

    Hi, anynone? please..

  • Ipad only uses one file name when uploading images via email

    We have an image tool that uploads images to a template website. The problem is the file names for these images must be unique any duplicate file names will be rejected. Some of our users want to be able to upload from the field but Ipad only assigns the file name "photo.JPG" to jpegs. It doesn't seem to include the sequential extension that actually does exist for the image on the file name when uploading. Is there a way to get ipad to do so, or is this something that Apple maybe want to consider looking into. I can easily see the average Joe emailing themselves images and hitting save only to replace and lose an older image because let's face it, not all users are on MACs and PC's do not allow multiple files to have the same file name in the same folder.

    Hi,
    Based on the description, you could send email to external addresses without the Twin Oaks software. However, with the Twin Oaks software, you couldn't send successfully.
    For this issue, I recommend you enable message tracking and check whether you could retrieve message tracking log entires when you send emails to external addresses through the Twin Oaks software.
    If you couldn't retrieve message these tracking log entires when you send emails to external addresses through the Twin Oaks software, it means that the Exchange server is OK and the crux of the problem is the Twin Oaks software.
    Here is an article about message tracking log for your reference.
    Get-MessageTrackingLog
    http://technet.microsoft.com/en-us/library/aa997573(v=exchg.141).aspx
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

Maybe you are looking for

  • Error in creation of model and version

    Hi experts, While I m trying to create Model and Version SAP demo systems, it is showing me error " Live cache is not availble". Should I copy a planning version to new or should I contact basis team for that? It is also not allowing me to create new

  • How to back-up Aperture3 libraries (on an external drive) to store in a safe place?

    What is the best way to back-up aperture3 libraries to an 2nd external drive that provides a 2nd copy that I can use in case something bad happens to my original drive? Should I back-up the entire library package or just the vaults? What is the diffe

  • Remove scroll bar from html snippet?

    Hello there, I have a little html sniipet on the fron page of my website which includes text from a small Goole sites page. The page it references has some google related text at the bottom ad is thus higher than the size of the snippet 'box'. O my i

  • VPN Termination IP address

    Hi, I am pretty sure that you can't do this in previous versions and don't think it has changed in version 9.X but though I would check in with the community before righting the idea off completely. We are an ISP that does Managed Services, I am look

  • How do i get ActivrX to run on mozellia

    i have network cameria and it sayes i need Active X to run for this cam to work