You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Andrea Tomasini <an...@dsnet.it> on 2000/05/02 16:04:31 UTC
R: 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.
Sounds like the mime-type is text/plain and not text/html... try to get out
headers before sending content back to browser... :-)
You can even try to setHeader("Content-Type","text/html"); :-0
Byez
ANdreaT