Title: [jdjlist] Re: Long Report

Jason, Kim, and others, big thanks for all your input!
I have used java.util.zip libraries to compress the HTML report on the app server into a byte[] b. This byte[] is transferred to the servlet and returned to the client as:

                    ServletOutputStream out = res.getOutputStream();
                res.setContentType("application/zip");
                res.setHeader("Content-Disposition",
                                        "attachment; filename=" + reportName.trim() + ".zip;");
                out.write(b, 0, b.length);

User then downloads a 93% compressed report as a zip file. I tried this up with to 3MB (250K compressed)/8 minutes to run over non-secure connection. This does not cause IE to POST-reload nor does IE issue a GET.

Another Triumph of Man Over IE!
Cheers and thanks to all,

Greg

-----Original Message-----
From: Jason Kilgrow [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 9:19 AM
To: JDJList
Subject: [jdjlist] Re: Long Report


Yep. I ran into the same issues with IE that you are. My report was a
little smaller than yours but I had the same problems. I had to
return a zip file and then have the jsp handle the zip file. Yucky
but it worked.
--- Greg Nudelman <[EMAIL PROTECTED]> wrote:
> Question for the Gurus:
>
> I got a Java App server sending a long HTML report (2-5 Mb) to the
> Java
> Servlet and Java Servlet (Apache JServ) then sends it to the
> client.  I am
> seeing a very strange IE 5.50 behavior:
>
> 1) IE POST (client waits ~5 min)
> -- about 50% of the info comes back
> 2) Weird: IE automatically re-posts the request (client waits ~5
> min AGAIN!)
> -- some info comes back (100%?)
> 3) Weird: Immediately, IE issues a GET
> -- servlet immediately replies: "400 GET not supported"
>
> I got to use IE, but for some strange reason, IE decides to refresh
> and make
> the user wait another 5 minutes for this report, and then of,
> course GET
> breaks it altogether.  BTW: Tried it with Netscape 6.2, it hangs on
> trying
> to parse this size of HTML file, but it does not re-issue a POST
> and does
> not produce a GET.
>
> I have some options, but they are very limited:
>
> can't send them the report in the email
> can't request report via GET
> can't produce a report and store it in the web folder for later, as
> I have
> multiple concurrent machines that do not share hard drive space.
> can't make it return faster then 5 min
>
> CAN TRY to make it return a zip file from the POST.
>
> Has anyone run into this IE issue and does anyone know a way to get
> the
> users a secure long HTML report in a sensible fashion?
>
> Thanks in a advance,
>
> Greg
>
>
> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
>


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to