try using the response.setContentLength(buf.length) ... or whatever buf is
..

paul
-----Original Message-----
From: Jeetandra Mahtani <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, September 28, 1999 7:15 PM
Subject: Repost: PrintStream and length of output


>> Hello:
>> I have something like the following in a servlet:
>> ....
>> buf.append("");
>> buf.append("</tr>");
>> buf.append("</table>");
>> buf.append("<table>");
>> ...
>> output = buf.toString();
>> PrintStream msg = smtp.startMessage();
>> msg.println("Content-type: text/html;   charset=\"iso-8859-1\"");
>> msg.println("<small><strong>To: " + to + "</strong></small>");
>> msg.println(output);
>> smtp.closeServer();
>>
>> The string output is pretty long and msg.println(output) is not printing
everything. It
>> takes only a fixed number of characters from the string output. Any ideas
on how to take
>> solve this?
>> Thanks,
>> J
>> __________________________________________________
>> Do You Yahoo!?
>> Bid and sell for free at http://auctions.yahoo.com
>>
>>
___________________________________________________________________________
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>> of the message "signoff SERVLET-INTEREST".
>>
>> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>> Resources: http://java.sun.com/products/servlet/external-resources.html
>> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>__________________________________________________
>Do You Yahoo!?
>Bid and sell for free at http://auctions.yahoo.com
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to