tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calvin Lau <>
Subject RE: String Taglib and NewlineToken
Date Thu, 07 Nov 2002 04:06:35 GMT
Can someone give me an example of how I would use
string:replace to change all the newlines in a chunk of
text to <br> tags?  I had been using the following:

<str:replace replace="
" with="<br>"> 
<bean:write name="article" property="articleBody"/>

However, after moving to a new server and upgrading to
Tomcat4.1, and this is no longer working.  I wanted to give
the newlineToken nightly build a try.



On Fri, 25 Oct 2002, Henri Yandell wrote:
So I've now implemented a new attribute named newlineToken
which is a special token to replace the forced newline. So
you can do:

<str:replace replace="hNL" with="j:NL:y"

and will match the newline. Also note that the same
newlineToken may be used in the with attribute.

Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos

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

View raw message