Struts doesn't provide that feature. You're too lazy to write a one line method that does it?

David



From: "dario" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: displaying "\n" in html?
Date: Sun, 2 Mar 2003 19:57:11 +0100

i allways store new line char in string as "\n", because i never know where
is it going to be displayed (console,webpage,etc...), but when i need to
display it in web page it shoud be converted to something like <br>
(although w3c doesn't recomend using <br>, i don't understand why) <pre>
doesn't work for me.

is there any utility method in struts which woud do conversion for me, i am
to lazy to write that method. are there other options besides struts? how do
you, people, handle this?


thanks everybody!

darioi






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to