We stream to the browser directly. And yes I do set the content type.
But no dialog boxes, since my browser is IE.
Which browser are you guys using?


Well, I 'solved' the problem by doing two things (I should beat myself with
a bat):
1. removed the setContentLength() call.
2. flushed the response stream






-----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]

Reply via email to