Hello,
Well in theory text/plain is just text which does not contain any HTML tags,
i.e. a .txt file on a PC. Whereas text/html is a HTML document with
structure containing tags. In reality when you set content type to
text/plain and send a HTML document to the ServletOutputStream, then
Internet Explorer formats and displays it as HTML, like if you set content
type to text/html. That's wrong, but it's just Microsoft. What it should do
is display the HTML source, like Netscape does.
You have standards, but major products don't support them. That's just the
way it is.
Petr
----------
From: Kenia Nimesh [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, 04 March, 1999 10:40 AM
To: [EMAIL PROTECTED]
Subject: setContentType
What's the difference between text/plain and text/html in the
function HttpServletResponse.setContentType()???
___________________________________________________________________________
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