poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Pojman <ipoj...@jmlafferty.com>
Subject Re: POI servlet output
Date Wed, 26 Feb 2003 19:15:38 GMT
Yes, I've set the content type. It does work fine on other containers.

On Wednesday, February 26, 2003, at 12:33 PM, nicolas kakaridis wrote:

> I found something that seems to work: I set the content-type before  
> writing to output stream...
>
>
>> From: Ian Pojman <ipojman@jmlafferty.com>
>> Reply-To: "POI Users List" <poi-user@jakarta.apache.org>
>> To: "POI Users List" <poi-user@jakarta.apache.org>
>> Subject: Re: POI servlet output
>> Date: Wed, 26 Feb 2003 11:39:12 -0600
>>
>> can I see your code?
>>
>> seems as if catalina prepends bytes, or as if the encodings handled  
>> by either aren't the same. catalina output seems to have some garbage  
>> bytes on the wire... like 7 bytes prepended to the file...
>>
>>
>> On Wednesday, February 26, 2003, at 10:47 AM, nicolas kakaridis wrote:
>>
>>> On the same subject,
>>>
>>> I have tomcat and I build HSSFWorkbook in a servlet, serialyse on  
>>> the response OutputStream and set the content type. Everything was  
>>> ok, and from now when the binary file exceed a certain size, the  
>>> content is displayed in IE and not in MS access. It is strange  
>>> because It worked fine before. And I didn't change anything on the  
>>> Response...
>>>
>>>
>>>> There is a faq at http://jakarta.apache.org/poi/faq.html#faq-7
>>>>
>>>> but i dont know if it will help you since you say that it works with
>>>> resin and not with tomcat. Can you be more specific about what you  
>>>> mean
>>>> by "messes up" ?
>>>>
>>>> On Wed, 2003-02-26 at 20:42, Ian wrote:
>>>> > I know this is sortof off list, but does anyone have code that  
>>>> serves a
>>>> > HSSFWorkbook out from a servlet? got it workign on resin fine  
>>>> days ago
>>>> > but catalina messes up the binary file somehow. I'veg checked my  
>>>> code
>>>> > aagin and again, wondered if anyone else has run up against this.
>>>> > havent tried response.reset() yet but that's my only idea. tried
>>>> > various mime types. using getOutputStream and writing the doc  
>>>> just as a
>>>> > i woudl to a FileOutputStream (which works fine under tomcat -  
>>>> just not
>>>> > writing directly out)
>>>> >
>>>> > thanks
>>>> > Ian
>>>> >
>>>> >
>>>> >  
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>> > For additional commands, e-mail: poi-user-help@jakarta.apache.org
>>>> >
>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> _________________________________________________________________
>>> The new MSN 8: advanced junk mail protection and 2 months FREE*  
>>> http://join.msn.com/?page=features/junkmail
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>>
>
>
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>
>


Mime
View raw message