Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Html line breaks with java

807580Dec 2 2009 — edited Dec 4 2009
Hi,

I have Strings that I print to an html log using log4j.
I am trying to get line breaks but the <br> is not interpreted properly.

I add line breaks to the end of the Strings like so:
"String1 <br> String2"
But the end result is not right:
"String1 <br> String2"
The line break is not happening. The <br> is printed out in the result.
How do I get proper line breaks in?
I tries using < but still no good.

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2010
Added on Dec 2 2009
16 comments
321 views