>>> Matthew George <[EMAIL PROTECTED]> 04-Jan-00 3:45:19 PM >>>

>I tried the work arounds like writing the whole output to a
>StringBuffer and then writing the StringBuffer to the PrintWriter.
>I have used setContentLength() to the exact length of the
>output and also tried with  exact length plus two as someone
>suggested.

You should not set the content length if you are having trouble. The
easiest thing to do is try this:


void doPost(HttpServletRequest req,HttpServletResponse resp)
{
   resp.setContentType("text/html");
   PrintWriter p=new PrintWriter(resp.getOutputStream());
   p.println("<html><body><h1>Hullo!</h1></body></html>");
   p.close();
}


if that works then servletrunner is ok and it is your code.

Check that you are flushing and closing buffers properly.




Nic Ferrier

___________________________________________________________________________
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