Excel 2010 missing default suggested file name in Save As dialog box

I’m using Excel 2010 running on Windows 7 (32 bit).  When I open a certain file which produces the following message: "A file is in a different file format than its extension indicates", and then go to “Save As” (or “Save”) the
file, the default suggested file name is missing (blank).  This didn't occur in previous versions of Excel. 
In previous versions, Excel would automatically populate the original file name in to the File Name field.
  I have searched all over the net, looking for a way to change Excel so that it will once again populate the file name in this situation. 
To reproduce:
Create a new blank workbook
save as type “Web Page”, (i.e. File name:  “Blank Example.html”)
Close workbook
In windows, rename file from .html to .xls  (i.e. rename “Blank Example.html” to “Blank Example.xls”)
In Excel open renamed file (i.e. “Blank Example.xls”) and click “Yes” when prompted with the “A file is in a different file format than its extension indicates” message.
Do a “Save As” and you will notice that the File Name is blank. In previous versions, this field would contain the current workbook file name
 (i.e. “Blank Example.xls”)
Any help will be greatly appreciated.

Hi Jaynet,
In order to re-produce this, you need to answer "yes" to the rename file prompt and then continue with step 5 (above).
The reason for this is not an exercise in futility - I assure you.  At my work and elsewhere, when web developers have created features to permit the end user to save web data in Excel format, often times the Excel files are saved locally in Excel's
html format (but with the .xls
extension). 
(I actually prefer the .xls
extension, because it is easier to just double-click the file to open in Excel, rather than to select the open-with and then select Excel. a file with the .html extension will default open in your default browser. Now, I could change my default program
for the .html extension, but that would only solve a part of the problem and would not really address the bigger issue and that being that Microsoft changed a behavior in Excel and may not even be aware that it was a much used feature. )
To continue, when I go to open the resulting Excel file, I am prompted with the message that the file type does not match the extension (which is fine and not bothersome to me).  It's at this point when I go to save the file that I get really annoyed.
In previous versions of Excel, the default file name would be pre-filled with the current name of the file and the default file type would state that it is a Web html file.  I would just change the file type to Excel Workbook and hit enter to save.
I would be prompted with "Are you sure you want to overwrite your existing file?" message and I would click "yes" and that would be that.
However, in Excel 2010, because the default file name is blank, I then need to re-type the name into the field to save the file. 
Any help is greatly appreciated.
Thanks

Similar Messages

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • All Office 2010 Applications Slow To Produce "OPEN" or "SAVE AS" Dialog Box ONLY When PC Connected To Network

    Hello all,
    Frustrating problem: ALL Office 2010 apps require a 45 second delay to produce an "open" or "save as" dialog box when the computer is connected to a LAN (wireless or wired, domain or workgroup). When the computer is NOT connected to a LAN (wireless or wired,
    domain or workgroup), then Office 2010 "open" or "save as" dialog boxes open normally (and quickly).
    I suspect a network search/survey function internal to MS Office is at fault.
    This is NOT the infamous mapped network drive problem associated with Office 2007/2010. There are no mapped drives (nor have there ever been) on the PC, although there might exist a related solution. Additionally, there is no 45 second delay when opening
    a file by double-clicking on the file itself which will launch the application.
    Other information:
    1. PC runs Windows 7 Pro 32 bit - PC is a relatively new Lenovo T400 laptop, all updates from Lenovo and MS installed, running clean and nicely otherwise, no spyware, no viruses, no previous software or hardware issues requiring assistance. Event log is
    clean.
    2. Absolutely fresh installation of Office 2010 Pro Plus (MS Action Pack)
    3. Running Office apps in safe mode does not alter problem behavior (ie, "windword.exe /a" or use CTRL key and double-click to launch app)
    4. Running Windows 7 in safe mode with networking and then subsequently testing Office apps is not possible: "license not able to validate" issue. This is a known problem and is not related to the slow dialog box response behavior.
    5. A desktop PC with the same MS Office 2010 installation, same volume license key, on the same network does NOT produce this problem.
    6. Full uninstall, reboot, and re-install of Office 2010 does not alleviate problem
    7. Disabling ALL startup items and services (including, of course, ALL Lenovo management software) does not alleviate problem
    8. SMB v2 bug is not the problem: ie, disabling mrxsmb20 service does not alleviate symptoms.
    9. I have isolated "Client for Microsoft Networks", "QOS Packet Scheduler", "Link-Layer Topology Discovery Mapper I/O Driver" (and Responder), and "Printer and File Sharing for MS Networks" in the network adapter properties are NOT causing the issue.
    10. Using Sysinternals Registry Monitor, I was able to determine that Office apps evaluate certain properties of your Internet Explorer settings before attempting to launch the "open" or "save as" dialog box. Altering the way intranets are detected, for
    example, does not alleviate the symptoms.
    11. Turning off Antivirus software (Avira Personal) does not alleviate the issue.
    This issue is causing a huge loss of work efficiency. Any help would be greatly appreciated.
    Thank you for your time.
    Sincerely,
    Rick

    Hello Rick,
    Through all the research I have done so far and talking with a few other coworkers what the common issues that cause this are is:
    1. Antivirus: disabling the antivirus is not good enough it needs to be totaly uninstalled and retested.
    2. startup programs: these need to be disabled through either Safe mode with networking or the start menu or MSconfig.
    3. Office addins: Disable all of them see if that helps. Then turn them back on one by one to see which addin is causing the issue.
    To disable addins: 1. open up regedit and navigate to this key. HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Addins and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins
    Then change the LoadBehavior to 0 this will disable the addin. 3 lets it run. Since this affected only one user HKEY_LOCAL_USER might be your best bet but don't rule out the other location.
    To verify there are no addins running go to the File tab>options>Add-Ins make sure nothing is listed under Active Application Add-ins.
    I hope this helps
    Thanks,
    Paul Slaathaug Sr. Support Engineer - Microsoft Word

  • Dynamically populate pdf File name in 'Save As' dialogue box

    We have  rendered a pdf using adobe webservice.
    Once the pdf is generated , and we click on saveAs menu dialogue box opens and default name is populated in fileName field.
    Can it be possible to populate that name dynamically ? We tried using response.addheader() but it didnt work.
    Note : We are using java to create xml which we are passing to adobe webservice.

    Hi Jaynet,
    In order to re-produce this, you need to answer "yes" to the rename file prompt and then continue with step 5 (above).
    The reason for this is not an exercise in futility - I assure you.  At my work and elsewhere, when web developers have created features to permit the end user to save web data in Excel format, often times the Excel files are saved locally in Excel's
    html format (but with the .xls
    extension). 
    (I actually prefer the .xls
    extension, because it is easier to just double-click the file to open in Excel, rather than to select the open-with and then select Excel. a file with the .html extension will default open in your default browser. Now, I could change my default program
    for the .html extension, but that would only solve a part of the problem and would not really address the bigger issue and that being that Microsoft changed a behavior in Excel and may not even be aware that it was a much used feature. )
    To continue, when I go to open the resulting Excel file, I am prompted with the message that the file type does not match the extension (which is fine and not bothersome to me).  It's at this point when I go to save the file that I get really annoyed.
    In previous versions of Excel, the default file name would be pre-filled with the current name of the file and the default file type would state that it is a Web html file.  I would just change the file type to Excel Workbook and hit enter to save.
    I would be prompted with "Are you sure you want to overwrite your existing file?" message and I would click "yes" and that would be that.
    However, in Excel 2010, because the default file name is blank, I then need to re-type the name into the field to save the file. 
    Any help is greatly appreciated.
    Thanks

  • Nowhere to type file name in save as dialog, is this normal . . .

    Hello;
    here's the problem;
    I'm having some problems with my main worksation and I'm going to probably rebuild it from scratch
    (HDD problem & an AVG Baked registry & network stack)
    so I've started by installing AA 2.0 (Full) onto one of  my backup systems
    & will follow with AA3.0 (Upgrade) if I can verify that the system can do the job for me
    here's the problem;
    I installed AA2.0 which is needed to get AA3.0(upgrade) to install
    but I haven't activated or registered yet because I don't want to waste any activations
    if I can't use the system
    is it normal for the save as dialog to not have a place to type a file name when AA isn't activated?
    System:
    HP/Compaq DC7600
    P4HT enabled 3.2GHz
    2GB DDR2 533MHz RAM
    Lots of HDD Space on 5 HDDs
    sidebar:
    why is my insertion point moved all over the page while I type this in firefox?

    thanks for the reply:
    don't know if this some sort of a display redraw issue:
    but if I just hit enter I get the file saved as untitled.wav (which is floating in the middle of the screen not in the correct location)
    and the file ends up in "My Music Folder" (which I never use, but can't change folders either)
    -good grief I hate M$ for their My . . . crap folders
    the system is using similar Intel-GMA integrated graphics as my main workstation
    the only difference is processors and the chipset is one generation back
    my main workstation has 965ry and the backup has 945g

  • File name display in delete dialog box

    In the course of working with photos in Lightroom, I've noticed a small user interface issue that can lead to confusion while deleting photos.
    In Explorer, a highlighted file is directly tied to any action selected via right click. For example, if I have file1 selected and I right click on file2, the focus changes to file2 and it is highlighted.
    In Lightroom, the highlight does not follow when an image is selected via right click. If I'm viewing photo1 and it is highlighted, right clicking on photo2 only changes the filename display above the filmstrip.
    Normally, this change in filename display would be sufficient visual feedback to be comfortable while deleting a file. However, if Lightroom is in the process of "Loading..." an image, there is sometimes a delay in the filename display update and more than once, I've had to pause to make sure I'm deleting the proper image.
    I've noticed this most frequently when switching back from Photoshop. If I've opened a Lightroom image in Photoshop (as a PSD) but decided not to move forward with the work, I'll switch back to Lightroom to delete the newly-created PSD. During this process, I'll hit a "Loading..." delay and and the filename display above the filmstrip will lag as I try to right click and delete what I think is the PSD.
    A simple solution, and one that I'd suspect users would appreciate given the value of RAW images, would be to display the name of the file(s) being deleted in the confirmation dialog box. If it's an important enough decision to warrant a multi-option dialog box, I think there's obvious value in confirming what is being deleted.
    Another item that came to mind -- It would be great if there was a preference setting that locked the user from deleting RAW images. That way, I'd never have to worry about selecting a RAW instead of a PSD and it would address some of the anxiety that comes with placing master images so close to PSDs from later in the workflow.

    Hi
    You can not use  File-Upload UI element inside confirmation dialog ,because there is no provision to add any UI ,except Button.
    Please avoid  my previous reply .
    Best Regards
    Satish Kumar
    Edited by: satish jhariya on Mar 3, 2009 11:29 AM

  • "Unable to read file" error in Excel 2010 when downloading .xls file from IE11

    We have lots of reports that have links for our users to be able to download report results in Excel format. We accomplish this by using the Excel mime type in our .asp pages. Sporadically, we are seeing "Unable to read file" errors in Excel 2010
    after choosing Open from the IE11 save dialog. Choosing Save/Save As and the file will open just fine.
    Also, we can sometimes cause the error to occur more frequently by switching windows during the time when the file is downloading.
    If the file is opened directly from /Temporary Internet Files then it opens just fine.
    Window 7 64-bit
    Thanks in advance!

    Hi,
    I found you replied in a similar thread, did you try the workaround (Reset the IE) that provided there? Did you change a browser to test?
    Then, I suggest we use Process Monitor to do further troubleshooting. Please collect all the actions of IE.exe and Excel.exe, and check the if there are some
    error message/code during you open XLS file from IE 11.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Adpatch default log file names-Raghuram Kotnana

    Does using of adpatch default log file names during patching makes it difficult to keep an accurate record of your patch history ?

    RaghuramKotnana wrote:
    Does using of adpatch default log file names during patching makes it difficult to keep an accurate record of your patch history ?
    It does make it difficult when you apply many patches and all are logged in the same patch log file. If you encounter issues applying patches while using the default adpatch.log name, it would be also harder to find the proper entries to grep and share with Oracle support.
    I would suggest you use the same patch driver name for the log file and replace .drv with .log (i.e. u<patch number>.log).
    Details about applied patches from your instance can be found in the tables in (Important tables used by and updated by ADPATCH utility (Doc ID 1520703.1)).
    You can also refer to eTRM website for details about each table -- http://etrm.oracle.com/
    Thanks,
    Hussein

  • Suggest file name in JFileChooser?

    I'm a newbie (student) to both Swing and Java in general. In using JFileChooser, It occurred to me that it would be nice to offer a suggested file name when saving files.
    For those of you who have used MS Word, when one saves a new file, Word offers the document title or a few words of the document's first line as a suggested file name. This suggestion is displayed in the file name textbox of the save file dialog.
    Is it possible to do this sort of thing in Java and with JFileChooser? If so, how?
    Thanks in advance for any feedback.

    JFileChooser  fc = new JFileChooser(".");
    fc.setSelectedFile(new File("AnyFileNameYouWant.txt"));

  • I cannot open files in excel with error message "The file name or path contains invalid characters

    I cannot open files in excel with error message "The file name or path contains invalid characters

    Found the solution. The hardrive name was changed to "/" which is not a recognised file path character. So I changed the name to "Mac" then I was able to already open all files in excel and word

  • Configure:3955: checking for C compiler default output file name

    Hi,
    I am trying to configure oracle bsd on AIX and got the below error,
    # sh /ldap/db-4.6.21.NC/dist/configure
    checking build system type... powerpc-ibm-aix5.3.0.0
    checking host system type... powerpc-ibm-aix5.3.0.0
    checking if building in the top-level or dist directories... no
    checking if --disable-cryptography option specified... no
    checking if --disable-hash option specified... no
    checking if --disable-mutexsupport option specified... no
    checking if --disable-queue option specified... no
    checking if --disable-replication option specified... no
    checking if --disable-statistics option specified... no
    checking if --disable-verify option specified... no
    checking if --enable-compat185 option specified... no
    checking if --enable-cxx option specified... no
    checking if --enable-debug option specified... no
    checking if --enable-debug_rop option specified... no
    checking if --enable-debug_wop option specified... no
    checking if --enable-diagnostic option specified... no
    checking if --enable-dump185 option specified... no
    checking if --enable-java option specified... no
    checking if --enable-mingw option specified... no
    checking if --enable-fine_grained_lock_manager option specified... no
    checking if --enable-o_direct option specified... no
    checking if --enable-posixmutexes option specified... no
    checking if --enable-pthread_api option specified... no
    checking if --enable-rpc option specified... no
    checking if --enable-smallbuild option specified... no
    checking if --enable-tcl option specified... no
    checking if --enable-test option specified... no
    checking if --enable-uimutexes option specified... no
    checking if --enable-umrw option specified... no
    checking if --with-mutex=MUTEX option specified... no
    checking if --with-tcl=DIR option specified... no
    checking if --with-uniquename=NAME option specified... no
    checking for chmod... chmod
    checking for cp... cp
    checking for ln... ln
    checking for mkdir... mkdir
    checking for rm... rm
    checking for sh... /usr/bin/sh
    checking for a BSD-compatible install... /ldap/db-4.6.21.NC/dist/install-sh -c
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    and in config.log,
    configure:3955: checking for C compiler default output file name
    configure:3982: xlc_r -O2 -D_THREAD_SAFE -Wl,-brtl conftest.c >&5
    /ldap/db-4.6.21.NC/dist/configure[3983]: xlc_r: not found
    configure:3985: $? = 127
    configure:4023: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Berkeley DB"
    | #define PACKAGE_TARNAME "db-4.6.21"
    | #define PACKAGE_VERSION "4.6.21"
    | #define PACKAGE_STRING "Berkeley DB 4.6.21"
    | #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
    | #define HAVE_UPGRADE_SUPPORT 1
    | /* end confdefs.h. */
    |
    Is this beacase valid c compiler not existing?
    # which cc
    which: 0652-141 There is no cc in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    # ksh: which:: not found.
    # which c
    which: 0652-141 There is no c in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    Thanks,
    Message was edited by:
    GK Joe

    Joe,
    I presume you are trying to build Oracle BDB and not bsd as you have mentioned.
    Yes, the error message you are getting is for not having the CC compiler in your system or the path isn't set. Check in the /usr/vac/bin directory if you have one in your system. You might find both xlc and cc compiler there. Set this directory to your path so that 'configure' can see it.
    Regards,
    -Debsubhra

  • Change default pdf file name

    Hi,all
    How can I change a default pdf file name from unknown.pdf to something else?
    Regards,
    Michael
    Edited by: Michael Beilin on Feb 6, 2008 9:47 AM

    HI Michael,
    Yes you can do that,
    Just do something like
         IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("PdfSource");
         ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
         IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
         binaryType.setFileName("TravelRequest.pdf");  // Set file name
         binaryType.setMimeType(WDWebResourceType.PDF);  // set the mime type
    for example in the doInit() before providing the file for download 
    Regards, Angel

  • Safari "Download Linked File As ..." dialog box seems to convert 3 or more consecutive period chars (\056) in the new file name into a Unicode ellipsis char \342\200\246 in the file name.  How prevent this ?

    Safari "Download Linked File As ..." dialog box seems to convert 3 or more consecutive period chars (\056) into a Unicode ellipsis char ( \342\200\246 ) in the file name that I type.  How does one prevent this ?

    I know nothing about “EndNote”, but allow me to give you some general advice. Your first, commented-out, line (“--section to wait for window to pop up”) indicates that you need to change the basic way you are tackling what you want to do. When writing any script, if you know the name and location of a file or a directory (folder) you should not cause (or allow, or need) your script to open an Open or a Save window -- just use the path that you already know.
    Andreas

  • Change File Name on Save

    Hi all,
    I have an action recorded that helps me to resize and rename an original image several times.  The action works perfectly, but I have to have the save step as manual so I can enter the correct save name for each file after the action resizes the image.  The save process is idential each time so I figure you must be able to 100% automate this.  So here is the scenario - hope someone can help.
    I have a heap of files open in Photoshop CS3
    action - resize and save as (current action does this)
    delete last 4 characters of current file name and add '1500' to end of current file name and save (this is what I want to automate)
    action - resize and save as (current action does this)
    delete last 4 characters of current file name and add '400' to end of current file name and save (this is what I want to automate)
    action - resize and save as (current action does this)
    delete last 3 characters of current file name and add '200' to end of current file name and save (this is what I want to automate)
    action - resize and save as (current action does this)
    delete last 4 characters of current file name and add '100' to end of current file name and save and close file (this is what I want to automate)
    run action again for all open files (this is what I want to automate)
    thanks in anticipation!   BD

    Here's a script for you:
    var count = 4;           // number of characters to remove
    var appendStr = '1500';  // string to append
    function main() {
      if (app.documents.length == 0) {
        return;
      var doc = app.activeDocument;
      var nm = doc.name;
      var base = nm;
      var ext = '';
      var m = nm.match(/(.*)(\.[^\.]+)/);
      if (m) {
        base = m[1];
        ext = m[2];
      if (base.length > count) {
        base = base.substring(0, base.length - count);
      var newName = base + appendStr + ext;
      doc.duplicate(newName);
    main();
    Save this to a file called "1500Dupe.jsx" or whatever.
    At the end of your first action, call this script. It will create a duplicate of the current document with last 4 characters replaced with '1500'.
    You will also need additional step in the action to save this to a file and close the duplicate document. It's simpler to do this in the action than it is in the script.
    You will need to create new jsx files for each of the other substitutions that you want to make. Just change the 'count' and 'appendStr' values as needed and save to new files.
    -X

  • Blank page shown instead of Open/Save As dialog box-CSV file download in IE

    I am migrating an application hosted earlier on Oracle 9iAS (9.0.3.1 BP1) to OracleAS 10g (10.1.3) with Struts 1.2.9. While the below JSP code worked for the earlier s/w stack when accessed using IE 5.5 SP2 or above, a blank page is displayed with the new s/w stack. What I mean by "worked earlier" is this. A "Open/Save As" dialog box would appear. Trying to "Open" would open a new IE window launching MS Excel and displaying correct data. Trying to "Save As" would display correct filename and extension in the dialog box.
    <%@page autoFlush="false" contentType="application/x-filler"%>
    <%
    try
    String fileName = "ABC.CSV";
    String strData = "A,B,C";
    response.setContentLength(strData.length());
    response.setHeader("Content-Type","application/octet-stream");
    response.setHeader("Content-Disposition","inline;filename="+fileName);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(strData.getBytes(), 0, strData.getBytes().length);
    ouputStream.flush();
    ouputStream.close();
    catch(Exception e)
    %>
    I tried some changes listed below:
    1. Deliberately introduced compilation errors in the JSP code.
    2. Changed contentType="application/x-filler" to various MIME types like application/x-download, application/vnd.ms-excel, removing it altogether.
    3. Commented out response.setHeader("Content-Type","application/octet-stream") and also tried other MIME types related to CSV/Excel.
    4. Changed Content-Disposition from inline to attachment.
    Each of the above resulted in an unacceptable behaviour compared with the earlier state:
    1. Blank page shown as if nothing was happening even in case of deliberate incorrect JSP syntax.
    2. Dialog box did show up with some combinations. But on trying to "Open" or "Save As", the dialog box shows up a second time. Then while trying to "Open", the contents get opened either inline or in MS Excel but with some additional garbage data like source file name.jsp etc. While trying to "Save As" the file name and extension take on the pattern <URL_Pattern>.htm where URL_Pattern would be "DOWNLOAD_ACTION.do".
    Some other information:
    1. This code works when accessed from desktop local container (Win 2000) but not when deployed on Unix env (HP-UX B.11.11.0109).
    2. Latest patchsets are installed for IE.
    3. The existing application is designed to work for ONLY IE 5.5 SP2 or above, so I haven't tried with other browsers. I have tried both IE 5.5 SP2 and 6.0 SP1.
    Any help in this regard will be highly appreciated.
    Thanks a lot for your valuable time..

    I have made it to work with the below changes:
    1. Changed the URL pattern for <filter-mapping> for *.jsp to /*.jsp
    2. Added <dispatcher>REQUEST</dispatcher> and <dispatcher>FORWARD</dispatcher>
    3. Everything else (code-wise) is as before.
    Because of these changes, the filter, wherein some headers are being added to the response, is being invoked appropriately now.
    Thanks for you time and suggestion though...

Maybe you are looking for

  • I got a new computer how do i get all my music from my ipod back on my computer

    i Got a new computer and got itunes now how do i get my music from my ipod back on my computer?

  • Webstart to Servlet Performance Issues

    Hi. I have a application that connects to a servlet to do database operations on a server. When it runs as either an application or an applet, the performance is great. However, when I try to deploy it with WebStart, the performance is terrible, a da

  • Merging child projects RH9

    I'm so confused right now that I don't want to look to see if there's an open topic because just one more piece of extraneous information will tank me. I have studied the topic at http://www.grainge.org/pages/authoring/merging_webhelp/merging_method_

  • CS2 Pixel Problems when editing

    Hi, I am an amatuer Photoshop user.  I have recently had problems with editing pics either resizing or adjusting levels,  saving then trying to post to a website.  The pictures show up awfully pixeled.  I downloaded the same pics without editing and

  • The shuttle puzzle problem..

    Hi guys; for those raedy to rise challenges i present this problem... Any ideas to solve it are welcomed..some code would be a generous action from your part... SHUTTLE PUZZLE The SHUTTLE PUZZLE of size 3 consists of 3 white marbles, 3 black marbles,