tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Dame" <>
Subject Preserving Line Breaks in <c:out>
Date Wed, 16 Jul 2003 18:52:41 GMT
Does anyone have tips on preserving line breaks in <c:out>?

For example, a user enters text into a textarea, which is stored in a
database. When I retrieve the text from the database, I'd like to
display it formatted exactly as the user entered it.

I can only think of two options:

1) Parse the text, insert <p> and <br> tags as needed, and set
escapeXml=false on the <c:out> tag

2) Hardwrap the text and use a <pre> tag or CSS equivalent around it.

Anyone have other ideas?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message