inserting in Break in jsp
hi i have a string as follows in a java bean : this should put \r\n this sentence in \r\n two lines.
when i retrieve this in my jsp it displays as a single line.
i am using JSTL in my jsp, and since the escape sequence are not identified in html i replaced the "\r\n" with "<bR>" but when i see the page it comes as follows:
this should put <br> this sentence in <br> two lines.
and if u see the source it is like:
this should put <br> this sentence in <br> two lines.
i would like to know how to resolve this and also how to replace multiple \r, \n, in any sequence, with a single <BR>
Thanks in advance
|