When adding "\n" to a Java String , the newline is not presented in a JSP but on stdin it does

Viewed 19134

When I pass a java string back to my servlet , the servlet passes that string to the jsp .

The string holds names & addresses with a new line "\n" , but when I'm trying to present that on the screen , I see a full line , however on the console the new-line is presented .

Here's a snapshot : First enter image description here Second enter image description here Third : from the CONSOLE

enter image description here

Any idea how to solve that ?

Regards

1 Answers
Related