RE: nl2br equivalent?

2004-05-26 Thread Daniel Perry
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:

Re: nl2br equivalent?

2004-05-25 Thread Paul Barry
quot;lf", "\n"); %> is there really no escape sequence for new line in el? Would seem like a rather big shortfall to me! Daniel. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: 25 May 2004 18:17 To: Struts Users Mailing List Subject: Re: nl2br equiva

Re: nl2br equivalent?

2004-05-25 Thread Henrique VIECILI
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",""); or you can try using Commons Lang and cc-* taglibs. Henrique Viecili - Original Message - Fr

RE: nl2br equivalent?

2004-05-25 Thread Daniel Perry
al Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: 25 May 2004 18:17 > To: Struts Users Mailing List > Subject: Re: nl2br equivalent? > > > http://jakarta.apache.org/taglibs/doc/string-doc/index.html#replace > > - Original Message - > From:

Re: nl2br equivalent?

2004-05-25 Thread Niall Pemberton
http://jakarta.apache.org/taglibs/doc/string-doc/index.html#replace - Original Message - From: "Daniel Perry" <[EMAIL PROTECTED]> To: "Struts User List" <[EMAIL PROTECTED]> Sent: Tuesday, May 25, 2004 5:50 PM Subject: nl2br equivalent? > I am a bit surprised, but there doesn't seem to b