struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "El Harouchi, Jaafar [IT]" <>
Subject RE: Download files over HTTPS
Date Tue, 24 Jun 2003 18:30:23 GMT
I had exactly the same problem.
Try first doing : response.reset()
If this doesn't work then you can try:
      Adding  8192 bytes to be sure that IE shows the document:
ostream.write(new byte[8192]);
      Setting contentlength: response.setContentLength(data.length+8192);
      Flushing the buffer:  response.flushBuffer();

-----Original Message-----
From: []
Sent: Tuesday, June 24, 2003 2:22 PM
Subject: Download files over HTTPS

I have a code segment which generates the file download dialog in the
browser. The file types supported are .qif, .xls

response.setHeader("Content-Disposition", "attachment; filename=" +
download.getFileName() );

BufferedWriter out = new BufferedWriter(new

This works great over HTTP in both IE 6.0 and Netscape 4.78.

But when I try this over HTTPS, the download dialog shows up with the file
name as the URL ( and nothin in content type. So IE displays an
error message saying that download cannot be completed.  It works great in
Netscape 4.78

Has anybody come across this situations? Any solutions?

I am using Struts RC-1 on weblogic 5.1, JDK 1.3.1


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message