Yeah, I was using that in another project in BOs "getNameWithBrs()"!

But kinda disobeys the keep presentation in the presentation stuff.  Which i
am believing more and more as it makes working with graphics/web ppl far
easier.

Daniel.

> -----Original Message-----
> From: Henrique VIECILI [mailto:[EMAIL PROTECTED]
> Sent: 25 May 2004 18:28
> To: Struts Users Mailing List
> Subject: Re: nl2br equivalent?
>
>
> 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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to