File Open: Asks twice to open document in IE6.0(Weblogic server with JSPs deployed)

          HI,
          This may not be appropriate question on this discussion forum. But in case if
          somebody has answer for this, please let me know:
          Problem:
          I am trying to open some documents in my JSP(JSPs are deployed on Weblogic5.1)
          where a BLOB will be streamed and written to ServletOutputStream. Some piece of
          code which does this, I have pasted below:
          // start attachmentviewer.jsp
          <% BufferedInputStream is = null;
          BufferedOutputStream os = null;
          response.setContentType(mimeType.trim()); // say application/msword for word document
          response.setHeader("Content-Disposition","attachment; filename=\""+attachmentViewBean.getAttachmentName()+
          "\";"); //bean method gets attachment name
          is = new BufferedInputStream(attachmentViewBean.getAttachment().getBinaryStream());
          // gets blob
          os= new BufferedOutputStream(response.getOutputStream());
          byte[] buff = new byte[6500];
          int bytesRead;
          out.clearBuffer();
          while(-1 != (bytesRead = is.read(buff, 0, buff.length)))
          os.write(buff, 0, buff.length);
          %>
          // end attachmentviewer.jsp
          I am closing handles etc. after this.
          This works fine in Netscape6.0 in which
          a dialog box prompts user to open/save
          document once and does correspondigly
          after user action.
          In IE 6.0 first file open dialog comes
          informing its open/saving
          attachmentviewer.jsp. Upon clicking open it
          again opens another dialog box
          informing to open/save for actual file
          name put in response's setHeader method.
          I observed this to happen in IE6.0, but
          works fine in IE5.5 prompting user once.
          If anyone has any idea/suggestions/tips
          about this, please lemme know.
          Thanks,
          Yogesh
          

i was able to solve it by clearing the output stream (jsp page - out.clear() ) before using it, even resetting the jsp response does the trick..
thanks,
prakash.m
Edited by message2prakash at 02/08/2008 10:35 AM
Edited by message2prakash at 02/08/2008 10:36 AM

Similar Messages

  • Cannot open copy of InDesign CC document located on a network server

    Adobe InDesign CC Mac v 9.2.1
    We have always had the possibility to «Open Copy» of InDesign documents which is in use by another user by using the option «Open Copy» in the Open-dialog.
    After upgrading to InDesign CC last week (currently v 9.2.1) we are now not longer able to open a copy of files in use, neither duplicate the file in Finder.
    When we try to open a copy we get this error message:
    «This file is already open by another user or another application. This file may be stored on a network server and cannot be opened until the other user closes it.»
    This is extremly irritating, and we spend a lot of time in closing files, duplicate them and open the copy manually. This has never been a problem until this CC version.
    I assume this is i a bug from Adobe, and that it will be fixed soon! I hope not this is a «new feature»!
    Annyone experienced the same problem and found a fix/workaround for it? Please...
    Jan Thore
    Mediateam, Norway

    Tried AFP and SMB on Mac (Windows server running Extremezip). Also doesn't work from a Windows PC-we get the same error.
    A previous post from an Adobe staff member indicated this was a known InDesign issue. We (and it looks like a few others) were looking for a fix.
    Thanks!

  • TS3212 when i download it saves as a file? itunes-setup? and ask me to open with a program. what am i missing

    when i download i tunes im asked to open save cancel. wherever i save it saves as a file itunes-setup. when i try to open this file it asks me to open with a program. just want to download i tunes, i had it before, thanks

    Have a look here  >  http://www.apple.com/support/itunes/install/

  • Encryption for properties file in Weblogic server 6.1

    My application needs to connect to a file server. I need to encrypt the password in properties file. Is there a built in encryption tool in weblogic server 6.1 to achieve that?
    Thanks

    My application needs to connect to a file server. I need to encrypt the password in properties file. Is there a built in encryption tool in weblogic server 6.1 to achieve that?
    Thanks

  • Multiple document roots on one instance of weblogic server..

    Hi,
    Is it possible to configure multiple document roots for one weblogic server?
    Here is my situation...
    We have a sun box which is having 4 IP addresses. We would like to have a
    document root for each IP address, but we want to run a SINGLE weblogic
    server instance..
    Any help is appriciated..
    thx

    check this out for more info:
    http://www.weblogic.com/docs51/admindocs/properties.html#multihoming
    "Mauricio Del Moral" <[email protected]> wrote in message
    news:3977759c$[email protected]..
    Hi,!
    I'm afraid not, but that would be great.

  • Opening a .doc file in Pages results in Untitled document?

    Hi all!
    I've reinstalled iWork '06, along with the rest of my OS, and I've noticed something strange: if I set Pages as default to open .doc files, every time I double-click on a .doc file, Pages opens it in an Untitled document.
    Of course, when it comes to saving changes, Pages asks me to save them in the Untitled, not in the original document. No matter that I exported the file in .doc in Pages in the first place, it just doesn't save it.
    How come?

    Before Pages 3/iWork '08, Pages opened any "foreign" document (Word, AppleWorks, text, RTF) as an untitled Pages document, just as it does a template. When you export a document, you're doing just that, not saving it. Pages "knows" you haven't saved it as a Pages document so the title doesn't change until you do save it.
    Since Pages 3, a "foreign" document will have the name of the original with the .pages extension added. But the rest of the process is the same.

  • When I try to open a 'pages' file the Bluetooth File Exchange asks where I want to send the file to!!!

    When I try to open a 'Pages' file the Bluetooth File Exchange pops up and asks for a bluetooth device to send this file to!!! Please can anyone help?

    I DID THE UNINSTALL  AND INSTALL DID NOT SOLVE PROBLEM
    STILL OPEN MULTIPLE EMPTY PGS
    WHAT CAN I DO?
    Date: Wed, 14 Apr 2010 10:28:56 -0600
    From: [email protected]
    To: [email protected]
    Subject: WHEN I TRY TO OPEN A PDF FILE, THE READER OPENS  HUNDREDS OF MULTIPLE BLANK PAGES .
    Something is definitely wrong with your install of Reader.
    A PDF consists of only the number of pages it was created with.  Reader can and will only open those pages... IF it's installed and working properly.
    Opening multiple blank pages from a document which contains none is a clear sign that the software isn't functioning. It's like putting a movie into a DVD player, and your TV starts a picture slide show of your last Summer's vacation. Not possible unless there's something seriously wrong.
    Uninstall Reader 9.
    Use either Adobe's clean uninstaller or Windows Installer Cleanup Utility (http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2. exe) to remove all Reader installer files from your system.
    Reinstall Reader 9 from a new download (do not use the old one if you still have it on your system)
    >

  • I am suddenly unable to open my pictures in Adobe Photoshop. It gives the following message: The document "Tina-19.jpg" could not be opened. Photoshop cannot open files in the  "Adobe Photoshop JPEG file" format. What does this mean? I have opened my phot

    I am suddenly unable to open my pictures in Adobe Photoshop. It gives the following message: The document “Tina-19.jpg” could not be opened. Photoshop cannot open files in the  “Adobe Photoshop JPEG file” format.
      What does this mean? I have opened my photos in Adobe Photoshop for years and suddenly I get this message and can't open any of my pictures

    JoeLib wrote:
    You type way faster than me Gene.
    Well, not necessarily in this case.
    According to the time stamp, Gene posted his answer a bit over three hours before you did, Joe.
    Gene's post:       Dec 29, 2014 5:54 PM
    Joe's post:          Dec 29, 2014 8:57 PM

  • I have Microsoft Word for Mac 2011, version 14.3.1.  When I try to open a document, an error occurs, says file type is "blocked from opening in this version."  This was NOT immediately after a version update.  Any ideas?  Thank you.

    I have Microsoft Word for Mac 2011, version 14.3.1.  When I try to open a document, an error occurs, says file type is "blocked from opening in this version."  This was NOT immediately after a version update.  Any ideas?  Thank you.

    Take a look here:
    http://support.microsoft.com/kb/953266
    If that doesn't help, I'd suggest you take up the question in Microsoft's own forums or with Microsoft support.
    Regards.

  • I keep getting a dialogue box asking me if i want to open or save a firefox document every time i click on an email in windows outlook; what can i do to fix this? thank you.

    Question
    i keep getting a dialogue box asking me if i want to open or save a firefox document every time i click on an email in windows outlook; what can i do to fix this? thank you

    Thanks for getting back to me; i was not able to get to the computer until now.
    No, not thru web access; it is via the Outlook provided thru Microsoft Office.

  • INDD CS6 error: "InDesign cannot open files in the "InDesign CS5.5 Document" format.

    Working in CS6 on Mac OS X 10.7.5: When I double click an INDD file in the Finder, I get the following error from InDesign:
    "The document "doc name" could not be opened. InDesign cannot open files in the "InDesign CS5.5 Document" format." 
    This just started recently and I have not been able to figure out why. I have not updated INDD or OS X. I can't think of anything else that changed, other than maybe a Java update. Have not updated to the latest OS yet. 
    The files I'm trying to open are files I created with CS6 - as recent as a few minutes ago.  I can open them fine using the File>Open command in InDesign so I can open them, but I can't open them by double clicking them in Finder or dragging them to the INDD icon in the dock.
    The info in Finder's "Get Info" window says they are CS6 files set to open in CS6 and I have permissions to read and write. They are not locked.  
    This is not incapacitating, but rather annoying and slows me down since this is one of the most common ways I open files. 
    Any suggestsion would be appreciated.

    Probably won't work because it sounds like an OS problem of some sort, but you can try trashing the prefs. See Replace Your Preferences

  • When I try to open a .pdf file it asks me to save the file instead of displaying it.

    When I try to open a .pdf file it asks me to save the file instead of displaying it?

    Gilad, I am new and I don’t know how to reply within the discussion site.  The browser I use is Firefox.  Thank you for any assistance.
    Martin
    Go Gators!!!!!!!!
    Martin M. Henderson, Jr.
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]
    [If you are posting using email, please turn your 'sig file' function OFF for posting]

  • My FaceTime seemed not working and keep  telling me The document "IMG_3054.JPG" could not be opened. FaceTime cannot open files in the "JPEG image" format.  I clicked OK but it pop-up again.  So that I can't turn off my computer at all.

    When I tried to restart my computer, FaceTime will pop-up and a warning message The document “IMG_3054.JPG” could not be opened. FaceTime cannot open files in the “JPEG image” format.  I tried to clike OK but this worning message keeping pop-up and I can not quit FaceTime.  So that I can't turnoff or restart my computer.
    Can someone help?

    The next time that happens, try this keyboard shortcut.
    Command + Option + Esc
    That way you can "force quit" the Facetime App.

  • I tried to open a folder in my Documents. It does not show in any window but does show up when I am half way between windows. It did the same thing when I tried to empty the trash. It asked if that was what I wanted but I could't say yes because it was or

    I tried to open a folder in my Documents. It does not show in any window but does show up when I am half way between windows. It did the same thing when I tried to empty the trash. It asked if that was what I wanted but I could't say yes because it was or

    what is your question/issue here? did the folder have any content in it to begin with? screen shots of what you may be seeing?
    if english isn't your native language, write it in what you are most comfortable speaking in to describe your issue.

  • Since I upgraded to Mavericks X, I don't have "permission" to open my photo files in Time Machine.  Other documents seem to work fine.

    Since I upgraded to Mavericks X, I don't have "permission" to open my photo files in Time Machine.  Other documents seem to work fine, and I am the only "administrator".  

    Is the iPhoto library in your home folder, or have you moved it somewhere else?

Maybe you are looking for