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...

Similar Messages

  • Editing the folder links in DW,FW "Open/Save As" dialog box

    i found apps to change the folder links in the left column of my various Windows7 Open/Save As dialog box, but it doesn't affect those in DW,FW. is there a way to do this?
    thanks
    GN

    Take a look at this:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_17216&sliceId=1
    Bryan Ashcraft (remove BRAIN to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "eliblow" <[email protected]> wrote in
    message
    news:fjkqvv$gig$[email protected]..
    >I would like to create open Save As dialog using
    ColdFusion. The user will
    >be
    > clicking a button and the dialog will pop up asking the
    user if he want to
    > save
    > the file. I know that it can be done using JavaScript,
    but I am not sure
    > how it
    > could be done with CF. any suggestions?
    >
    > Thank you in advance.
    >

  • How do i disable the open/save image dialog box in firefox? I want to directly save the image file to the drive.

    How do i disable the open/save image dialog box in firefox? I want to directly save the image file to the drive without clicking on save option everytime when saving an image. I'm using firefox ver 35.0.1 for windows 7.

    Click on the Firefox menu. Then click "Options". Go to "Applications" tab. Search for jpg and png file type. You will find they have "Always ask" action attribute. Change it to "Save file".
    Hope it will work fine for you.

  • CS5.5/OS X 10.8: Open/Save As dialog box resizing

    Since I have been using CS5.5 Web Design Premium in Mountain Lion, I cannot get the programs to remember me resizing the Open and Save As dialog boxes.
    Each time I Open or Save As, the windows default to about 720 x 540, which is annoyingly small on a 1920 x 1200 screen. 
    In each programs' .plist file, located at /Users/(username)/Library/Preferences/, there are two keys:
    NSNavPanelExpandedSizeForOpenMode:GetFile
    NSNavPanelExpandedSizeForSaveMode:PutFile
    After trying to resize the windows, I  QuickLook these .plist files.  The values for these key-value pairs are
    1)  sporadically updated and subsequently ignored on program close/relaunch, or
    2)  not updated at all.
    Have noticed this problem in DW, FW, AI, and FL.  PS seems to be the only exception.
    Adobe products are the only programs on my Mac that exhibit this problem.
    Mac OS is up to date. (10.8.3 as of date of post)
    All aforementioned Adobe programs are up to date according to the Adobe Application Manager.
    The preferences folder and the specific .plist files contained therein are read/writeable by me, the administrator.
    Rebuilding the .plist file does not help.
    Rebuilding the Saved Application State folder for the program does not help.
    Other miscellaneous things (resizing Finder columns, showing/rehiding hidden files, maximizing/restoring the window) don't help either.
    Can any community members who have experienced this problem suggest any fixes?

    I think this is an OS X 10.8 thing rather than a CS5.5/OS X 10.8 thing – but I would really like a fix for this too, nnotnorth

  • Open Save As Dialog Box

    I would like to create open Save As dialog using ColdFusion.
    The user will be clicking a button and the dialog will pop up
    asking the user if he want to save the file. I know that it can be
    done using JavaScript, but I am not sure how it could be done with
    CF. any suggestions?
    Thank you in advance.

    Take a look at this:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_17216&sliceId=1
    Bryan Ashcraft (remove BRAIN to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "eliblow" <[email protected]> wrote in
    message
    news:fjkqvv$gig$[email protected]..
    >I would like to create open Save As dialog using
    ColdFusion. The user will
    >be
    > clicking a button and the dialog will pop up asking the
    user if he want to
    > save
    > the file. I know that it can be done using JavaScript,
    but I am not sure
    > how it
    > could be done with CF. any suggestions?
    >
    > Thank you in advance.
    >

  • Photoshop CS6 Windows - Open\Save as dialog box

    Why in Photoshop & Illustrator CS6 "Open" and "Save as" dialog box style is from Windows XP?
    In AfterEffects, Audition and other is new dialog box style:
    Can Adobe add in "Preferences" - option with checkbox for users Windows 7/8
    who can use the new windows explorer with extended folder bar?
    That would be simplified and speeded up a lot of things.
    Or maybe I'm blind and not see this option

    Summary:
    ... because 100 years ago, people also had wooden wheels for cars.

  • New Folder link in Ribbon menu, load home page instead of open Folder Name dialog box

    In SharePoint 2013,
    I have created new site collection under "\sites" managed path. Then I have created Sub-Site called "\sites\abc\Mobile" under it.
    Now,
    Site collection - http://sharepointweb/sites/abc and
    Sub-Site - http://sharepointweb/sites/abc/Mobile
    Site Template: Team Site / Publishing Site
    After creation of the above, go to sub-site -> click on "Document" library -> Click on "New Folder" under "File" tab.
    when click on New Folder link, it shows home page in dialog box instead of new folder name popup.
    This is only happening for "Mobile" named sub-site under "/sites" managed path. Please try from your side and let me know.
    May I know what the issue is? Please clarify.

    Hi and welcome to the Blackberry Forums
    1) When ever I have a message notification (be it missed call one or an sms alert),
    it becomes difficult navigating in the "Messages" box : the reason is it opens
    always in the last place where I left it. So I have to press Menu & then scroll down
    to "View Folder" (pressing "v" also helps) & then it says "Select Folder".
    Not, when you have a new message and you go to the message folder you can see the last place where you left, but if you press T (top) you can see the new messages. (always the new messages are in the top and you can't change this) 
    2) How to change the HOME PAGE of the Browser.
    Go to the browser, one you are in press menu, options, browser configuration, and you can change the home page on bottom.
    3) to extend the battery life, I read that all applications should be closed using the
    "Close" option in its Menu. To see which all applications are currently running, one
    should check on "Switch Application" - if you see application their, then it is open.
     The problem I am having is some applications (appearing in S/A mode) I was able
    to close (eg games etc), but some are not getting closed eg :messages, browser,
    bb messenger.
    Please read this link to maximize battery and memory
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB14320
    There are five applications can't be closed 
    Blackberry Messenger, HOME, phone, browser, and mail 
    Thanks 
    If I help you with any inquire, thank you for click kudos in my post.
    If your issue has been solved, please mark the post was solved.

  • When I click "Tools" and then "Options" Firefox freezes instead of opening the Options dialog box. What can I do?

    No more details, this is it: it freezes when trying to open "Options" from the Tools drop-down menu.

    Thanks Cor-el!! It's over!
    Taruno

  • How to get save as dialog box.

    i want to open a "save as" dialog box from file menu.and i want to specify by myself which type of item should be in "Save as type" drop box in the save as dialog box.how to do it???????plz help........thanx in adv.

    I believe that the Sun tutorial over [How To Use File Choosers|http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html] will be able to give you the answer for this one. This and the JFileChooser API and other associated APIs.

  • "Save As" Dialog Box in Acrobat X/Windows 7

    One of the best things about Windows Vista and 7 is the much-expanded and much-improved Open/Save As dialog boxes.  They are much more efficient and much easier to work with, especially as you build huge document libraries.
    When I installed Acrobat X I was very excited by the assumption that a post-Windows 7 Acrobat build would utilize Windows 7 dialog boxes.  Oh was I wrong.  It seems that Acrobat X still utilizes the old Windows 2000/Windows XP dialog boxes.
    Does anyone know of a way to force Acrobat to use 21st century dialog boxes?  Or am I doomed to remain stuck in 1990s file navigation hell?
    Thanks.

    This is really unbelieveable that Adobe is apparently unable to detect the version of Windows that they are running on and alter the Dialog box to suit! I can only imagine that their code base is so bad and riddled with old legacy stuff that their developers are unable to make this change without breaking everything. In which case, why even bother to bump to a new major version of X ?
    Why do we support this?
    Chris Cox, your answer of "We've been trying to - but we still have to support XP and Vista." is unacceptable. You know how to detect that you are running on Windows 7 and you can still support XP and Vista. Any developer out there know this.
    MAKE THIS CHANGE NOW !!

  • Ever since upgrading to Mountain Lion, my AOL messages sometimes, but not always open with a blank page. If I open AOL in Firefox, the messages open fine.  This does not happen with any messages by any means, and it is not any type of certain message

    Ever since upgrading to Mountain Lion, my AOL messages sometimes, but not always open with a blank page. If I open AOL in Firefox, the messages open fine.  This does not happen with any messages by any means, and it is not any type of certain message. In fact, in the same screen I can often open an email from the same sender with email intact. This is weird. Sometimes I close the page and open a new page. Sometimes that works and sometimes it does not. It is a very annoying thing.

    Hi,
    When you start Messages fro the first time you are asked for an Apple ID
    When this is verified and entered it appears in Messages Menu > Preference > Accounts and is Enabled.
    The App should have also picked on on those iChat Accounst you had before.
    These should be Enabled if they were when you last used iChat.
    Exactly which "Accounts" are logged in can be seen in Message Menu > Accounts and will include the iMessage "Account" and Bonjour.
    In the Window menu you will see CMD +0 for the Messages window and CMD+1 for the "Buddies" window which is a combined list at this stage.
    Go to the Preferences > General Section and Untick the "Collect all accounts into one list".
    This will give you separate iChat type Buddy lists.
    You can check if that account/Buddy list is set to Invisible or if in the Preferences > Accounts > Security you have settings that will block some people from seeing you as On line.
    You are saying Buddies can see you as On Line which implies they are still sending to your AIM based Names (@Mac.com is a valid AIM Screen Name)
    I am not sure from your post if you are trying to iMessage their email IDs thinking they are Apple IDs and that they are using Messages as well.
    There is no Buddy list for iMessages side
    No-one can tell you are "On Line" until they have your details in the "To" spot in Messages with the correct iMessaged contact info (iPhone Number or Apple ID)
    Obviously an Apple ID can be an email or look like one.
    In some cases they are also valid AIM Screen Names as well.
    In the case or the @mac.com name you may have linked this Apple ID to iMessages as well.
    11:31 PM      Saturday; August 11, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Blank Page Shown After Choosing Template

    Blank Page Shown After Choosing Template in iwork 09 pages

    Some more information is needed. Which Pages 09 version do you have? Are you new to Pages? Which template did you choose. Have you tried it several times? HAve you tried in another user account on your computer?

  • How to make firefox open a blank page every time i open a new tab

    Due to the recent update of Firefox to version 16.0 it opens my most visited websites every time i open a new tab i want it to do what it used to do all the time i want it to open a blank page every time i open a new tab.
    thank you.

    hello yon1000, please refer to [[New Tab Page – show, hide and customize top sites]] in order to switch the feature off.

  • When I select print from any website article while in Firefox it only prints a blank page. When I open same web pages using Safari, they print fine. Documents in other appliations print fine. Only Firefox documents print blank page.

    When I select print from any website article while in Firefox it only prints a blank page. When I open same web pages using Safari, they print fine. Documents in other appliations print fine. Only Firefox documents print blank page.

    Quit Safari.
    Open the Library folder in your home folder as follows:
    ☞ If running Mac OS X 10.7 or later, hold down the option key and select Go ▹ Library from the Finder menu bar.
    ☞ If running an older version of Mac OS X, select Go ▹ Go to Folder… from the Finder menu bar and enter “~/Library” (without the quotes) in the text box that opens.
    Delete the following items from the Library folder:
    Caches/com.apple.Safari/Cache.db
    Preferences/com.apple.quicktime.plugin.preferences.plist
    Preferences/QuickTime Preferences
    Relaunch Safari and test.

  • I would like Adobe to utilize the non-legacy save/open Windows 7 dialog box

    So I downloaded the trial for CS5.5 Master Suite and found that the open/save dialog box is the same thing from CS5.  This is a huge disappointment.
    Reason being is explained right here: http://www.sanneblad.com/2010/06/18/customizing-the-open-and-save-dialogs-in-adobe-cs5-for -windows/
    Common File Dialog is being used still by CS5 and CS5.5 which is outdated and legacy.
    [Starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the Common Item Dialog. We recommended that you use the Common Item Dialog API instead of these dialog boxes from the Common Dialog Box Library.]
    The Open dialog box lets the user specify the drive,  directory, and the name of a file or set of files to open. You create  and display an Open dialog box by initializing an OPENFILENAME structure and passing the structure to the GetOpenFileName function.
    The Save As dialog box lets the user specify the drive, directory, and name of a file to save. You create and display a Save As dialog box by initializing an OPENFILENAME structure and passing the structure to the GetSaveFileName function.
    Explorer-style Open and Save As dialog boxes provide user-interface features that are similar to the  Windows Explorer. However, the system continues to support old-style Open and Save As dialog boxes for applications that must be consistent with the old-style user interface.
    In addition to the difference in appearance, the Explorer-style and  old-style dialog boxes differ in their use of custom templates and hook  procedures for customizing the dialog boxes. However, the Explorer-style  and old-style dialog boxes have the same behavior for most basic  operations, such as specifying a file name filter, validating the user's  input, and getting the file name specified by the user. For more  information about the Explorer-style and old-style dialog boxes, see Open and Save As Dialog Box Customization.
    The following illustration shows a typical Explorer-style Open dialog box.
    http://msdn.microsoft.com/en-us/library/bb776913%28v=VS.85%29.aspx
    http://msdn.microsoft.com/en-us/library/ms646960%28VS.85%29.aspx
    It appears it would be a simple retooling of the code in order for this to work.  I truly hope that Windows 8 will force all software developers to utilize the new Common Item Dialog API.

    We've been trying to - but we still have to support XP and Vista.
    It appears it would be a simple retooling of the code in order for this to work.
    Um, no, not that simple.

Maybe you are looking for

  • Problem with Virtual PC and Network Connection - VPC gets disconnected

    Hi, I've been having a few problems with a virtual computer and its network connection.  I've set up a few computers the same way over the years and they all work fine except this one.  We use the Virtual PC and XP mode to access our data from an old

  • How do I synch Contacts on my iPod Touch?

    I have tried to synch Contacts onto my iPod Touch (First Generation) several times now and have checked the box that says "Replace information  on this iPad" but so far, there are no contacts showing on the iPad. I need them actually stored on the ph

  • Date inserted as 0/0/0000

    Hi, I'm facing a unique problem where the date i send to inserting in database is 2013-05-09 and the value inserted in db is 0000/0/0. And the strange thing is the response i get is 20142014-05-09. I'm using toplink and java, Oracle10g. From the requ

  • How to import payroll result from 3rd party system to SAP

    Hi Experts, May i know how to import payroll result from legacy system / 3rd party payroll system into SAP. i need to import the payroll result from Jan - April (from 3rd party payroll system) and system go live on May. I using payroll malaysia. Than

  • Backgroung job problem

    Hi, In my production server user is scheduled a background job but the background job is cancled  due to ABAP dump "GETWA NOT ASSIGNED"but when same job run on foreground then it's completed succesfully.I can't understand what the problem ??