tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Rudnicki <jdr5l...@pacbell.net>
Subject Re: servlet respose is not interpeted by the browser
Date Mon, 01 May 2000 07:30:49 GMT
I'm 99% sure you are missing this

  response.setContentType("text/html");

In your servlet doGet().  This statement causes the MIME type to be
prepended to the output.  The browser is looking for this to determine what
to do with the data that follows.  The browser does not guess that the data
is html, text, jpeg, gif, etc.

gnite
Jim
----- Original Message -----
From: "Marcos Martinez" <marcos@vfh.hs-bremerhaven.de>
To: <general@jakarta.apache.org>; <tomcat-user@jakarta.apache.org>
Sent: Friday, April 28, 2000 6:16 AM
Subject: servlet respose is not interpeted by the browser


> My problem is that when i get the output of one servlet, the only thing
> which i am able to see, is the html page, as if it was a test file, I
> mean that i get in my broser all the code of the dinamic html page which
> was generated by the servlet. it seems like my browser was not able to
> understand html, and the display the source code instead of the real
> content.
>
>
> Thanks for all.
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message