Hi,
I m new to Servlets, hence apologize in advance
for wasting u r time 'n' energy in replying this.
Please consider following imp. of doGet() -
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException {
PrintWriter out = res.getWriter();
//PROBLEM res.setContentType("text/html");
out.println("line 1");
out.println("line 2");
out.println("line 3");
}
Now, I get the output as : line 1line 2line 3
But if I change the contentType to "text/plain", output is -
line 1
line 2
line 3
Please clarify, why new-lines are not printed in "text/html"??
TIA
ips
__________________________________________________________________
Get your own free England E-mail address at http://www.england.com
___________________________________________________________________________
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