i suppose out is the printwriter. so before getting the out by assigning
the res.getoutputstream() set the
res.contentType("text/html");
this only tells that the response type is of html else it takes it
as a simple text file and displays whatever is send to it.
bye,
MUTHU.
People who drink to drown their sorrow should be told that
sorrow knows how to swim.
--Ann Landers
On Wed, 8 Sep 1999, Jaman Burton wrote:
> This is a weird problem that I don't even know if I can describe
> accurately. But here goes:
>
> I have just finished installing webshere 2.02 on my NT box. It working
> in conjunction with Netscape Fast-Track 2.0. Everything seems to be
> running properly except this.
>
> When I run the test servlets( or even a hello world) servlet of my own.
> All the text that is in servlet code enclosed in parenthesis gets
> repeated over and over on the web page. For instance...let's say the
> following is a snippet of code:
>
> ...
> out.println("<HTML>");
> out.println("<Body><Title>Hello World page</Title></Body>");
> out.println("<center>hello world</center>");
> out.println("</HTML>");
> out.flush();
> out.close();
> ...
>
> The web page will look something like this:
>
>
> Hello World
> TML> Hello World <Body><Title> Hello World </Body></Title>
>
> This will repeat maybe 4 or 5 times...have any of you encounted
> this...or have any ideas on how to fix it?
>
> I've attached a copy of one of their sample servlets exhibiting this
> behavior
>
> Thanks a lot
> Jaman
> [EMAIL PROTECTED]
>
___________________________________________________________________________
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