tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kotsiras, Alexandros" <AKotsi...@mediaondemand.com>
Subject RE: "\n" problem.
Date Thu, 14 Sep 2000 14:18:44 GMT
\n and \r are for changing lines when outputing on the Console or a tetx
file.
For Browsers you have to use HTML tags which is <BR>

Alex.

-----Original Message-----
From: yuexiang@leonis.nus.edu.sg [mailto:yuexiang@leonis.nus.edu.sg]On
Behalf Of yangyuexiang
Sent: Tuesday, September 12, 2000 11:23 PM
To: tomcat-user@jakarta.apache.org
Subject: "\n" problem.


> Hi,

I have such lines like:

out.println("Hello world\n");
out.println("Hello world\n");
out.println("Hello world\n");

Why these lines are displayed in one line of the browser?

Thanks
yangyuexiang

Mime
View raw message