You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dario <da...@inecco.net> on 2003/03/02 19:57:11 UTC
displaying "\n" in html?
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
Re: displaying "\n" in html?
Posted by Dave Newton <da...@solaraccess.com>.
On Sun, 2003-03-02 at 13:57, dario wrote:
> 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?
It would have taken noticeably less characters than your list posting.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org