I've seen the two-dialog issue intermittently, serving .xls from Tomcat.

By sniffing the HTTP traffic we determined that HTTP POST requests
always caused the two-dialog issue for us; HTTP GET requests never did.

I haven't looked at this since so I've no idea of the actual root cause,
but I'd be very interested to know.

Iain Shepherd



-----Original Message-----
From: Kendall Coolidge [mailto:[EMAIL PROTECTED] 
Sent: 18 November 2004 20:27
To: POI Users List
Subject: RE: Content length issue


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]



------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.

------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to