Results 1 to 7 of 7

Thread: Excel download problem from JSP on https protocol

  1. #1
    Join Date
    Apr 2010
    Posts
    69

    Excel download problem from JSP on https protocol

    I generate the pdf reports energetically from side to side a reporting tool and stored the files on the app server. I then was capable to set the response as advised, and then forwarded the user to the pdf report: Hi guy I originate a fix that works for me across the entire versions or descriptions of IE (on the other hand some might not open into Excel additional than do let you save the file) I utilize apache Axis. I have comprise no possibility to revolutionize the policy Cache I had the similar tribulations and originate a simple solution to the issue.

  2. #2
    Join Date
    May 2009
    Posts
    529

    Re: Excel download problem from JSP on https protocol

    The tribulations solved by means of setHeader as an alternative of addHeader, as used previous to (setHeader overwrites, in several case). In my case, it was a Jasper Reports PDF stream download. I have comprise an alternative which permit the user to download the data displayed on the screen in Notepad and save it. When the download alternative is clicked and the dialog box opens, on hit it off of Open button the data on screen opens as a text file in Notepad. Once in a at the same time as the submission behaves speciously by opening a blank Notepad by means of a dialog box 'Cannot locate the myfile.txt file. Do you desire to generate a innovative file' with Yes, No and Cancel buttons. Clicking Yes/No brings up the blank notepad.

  3. #3
    Join Date
    May 2009
    Posts
    637

    Re: Excel download problem from JSP on https protocol

    This forces IE to open the open/save dialog box and permits the user to save or open. If the save it, it previously has the ".xls" appended to the file name so it determine to save it as an Excel file. If they select to open it, it determine to once the entire in excess of again observe the ".xls" and open Excel in it's own window and the page. This explanation worked for me and hopefully determine to work for additional. We have comprise the following tribulations. Our issue is, it is running in most of the developer desktops additional than regrettably not at user desktops suddenly. This is a production submission and suddenly this characteristic stopped working for the user. There was no innovative code changes.

  4. #4
    Join Date
    May 2009
    Posts
    543

    Re: Excel download problem from JSP on https protocol

    Numerous thanks for this article - it helped me to get to my answer. In my case, I am working Apache and serving a energetically generated PDF file that downloads extremely well in the entire popular browsers additional than IE. My running explanation was to add the following lines prior to my additional header outputs: The following Pragma and Cache-Control lines are essential as the overcome an tribulations that IE has in some server configurations when the no-cache header is sent. The two lines override these headers, permitting IE to proceed. When not turned on, the error IE.

  5. #5
    Join Date
    May 2009
    Posts
    511

    Re: Excel download problem from JSP on https protocol

    This is it appears that a recognized bug in IE that has been there in view of the fact that IE 4.0 and has tranquil not been resolved. The tribulations is that IE cannot handle file downloads in excess of https when the cache-control header is set to no-cache. I read a number of smart comments on the Web how one explanation is to not make use of IE. On the other hand, I in conclusion figured out a technique to get it to work by means of the entire browsers at the same time as using SSL: As usual set the Content-Type to the submission (i.e. Excel) and the Content-Disposition to attachment; filename=... at present, important for IE you be obliged to not set Cache-Control to no-cache and you must set Cache-Control to max-age=0 (additional values might work as well). If moreover you have comprise no-cache set or you have not max-age set the download determine to not work.

  6. #6
    Join Date
    May 2008
    Posts
    1,196

    Re: Excel download problem from JSP on https protocol

    The IIRC https placement to a page that serves up plugin-served contented does not run on Internet Explorer. My workaround was to utilize https get as an alternative. I did not desire the user to have comprise to save the file, immediately bring it up in the plug-in in the most important browser window. We were prompting the user by means of the usual Open/Save dialog for a pdf file we are generating by means of iText. The request comes in excess of http and not https additional than we have a sanctuary constraint imposed inside web.xml (under tomcat 5.0.27) which requires the user to do a fundamental substantiation.

  7. #7
    Join Date
    Aug 2009
    Posts
    652

    Re: Excel download problem from JSP on https protocol

    It seems that, IE, from version or description 4.0.1 on, has some tribulations by means of these directives when you try to OPEN the file from the at the appointed time mentioned on top of. Fundamentally it starts acrobat reader additional than then acrobat says that the document contains no data. Perceptibly if you try to moreover save the file or you try to open/save it from an additional browser (Mozilla, Firefox, others) it works completely. We have comprise JSP which generates a table and we view this in an excel window. On the other hand when viewed in excel, one of the records in the table goes missing. The similar table data when viewed in html form has the entire the records. The missing record seems to be attractive ordinary quite similar to the additional records.

Similar Threads

  1. Stateless protocol v/s stateful protocol
    By Vedic in forum Networking & Security
    Replies: 4
    Last Post: 07-02-2011, 10:48 PM
  2. Nokia Fbus protocol problem
    By Paqway in forum Portable Devices
    Replies: 4
    Last Post: 07-10-2010, 04:50 AM
  3. Replies: 4
    Last Post: 29-12-2009, 04:39 PM
  4. Excel problem: Excel has to stop working...
    By void in forum Windows Software
    Replies: 5
    Last Post: 17-12-2008, 06:00 PM
  5. Replies: 1
    Last Post: 30-05-2007, 06:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,715,055.04561 seconds with 17 queries