Ok, there isn�t an 'incredibly useful nl2br' but there is a 'marvelous regex-based
method' to do this using Java:
String nl = "String with \n new line";
String br = nl.replaceAll("\n","<br>");
or you can try using Commons Lang and cc-* taglibs.
Henrique Viecili
----- Original Message -----
From: Daniel Perry
To: Struts User List
Sent: Tuesday, May 25, 2004 1:50 PM
Subject: nl2br equivalent?
I am a bit surprised, but there doesn't seem to be an equivalent to php's
incredibly useful nl2br in jstl...
Is there an easy method I'm missing that will output a string after
converting line breaks to <br> tags?
Daniel.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]