Dave, I have seen the two-dialog download issue and I do have a work-around that you may or may not like.
Right-click My Computer, Explore, and choose Tools, then Folder Options. Select the tab File Types, and scroll and select XLS Microsoft Excel Workbook. Click Advanced, and if the "Confirm Open After Download" box is checked, uncheck it. Then OK out. Of course, the problem with this is that it is desktop by desktop. We found that some folks had the problem while others did not. Hope this helps, Kendall -----Original Message----- From: Hamu, Dave [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 3:04 PM To: POI Users List Subject: RE: Content length issue We have the identical platform and we do not set the length and we do not see the error that you reported. I was curious if you download to the user or if you stream to the browser? If you download to the user by setting the content type, do you get one or two download dialogs? We get two and it's really baffling. Perhaps someone has seen this problem and knows how to resolve it. Thanks, Dave -----Original Message----- From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 12:53 PM To: POI Users List Subject: Content length issue Hi I am using POI to create excel workbooks and streaming them to the user. My application server is Websphere. On AIX, it throws a com.ibm.servlet.engine.srt.WriteBeyondContentLengthException I have set the content length in the following manner: response.setContentLength(wb.getWrappedWorkbook().getBytes().length); where getWrappedWorkbook() returns the wrapped instance of HSSFWorkbook. In WSAD, it works fine only if I do not set the content length (at all). If I do, it fails. On AIX, it does not work even if I remove the setContentLength() call altogether. Has anyone since this problem? It may turn out to be Websphere related so I apologize for the cross-posting in advance. -Sid --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
