struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: displaying "\n" in html?
Date Sun, 02 Mar 2003 19:13:23 GMT
Struts doesn't provide that feature.  You're too lazy to write a one line 
method that does it?

David



>From: "dario" <dario@inecco.net>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>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: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message