RE: Best way to parse a String and replace line feeds with br f or html?

2003-12-17 Thread Barett McGavock
Thoughts: 1) Assuming that you have a separate value object to carry this item to the view, try replacing any \n with br in the action. 2) Have you also considered using the pre HTML tag? B -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17,

Re: Best way to parse a String and replace line feeds with br f or html?

2003-12-17 Thread Jason Lea
That does mean you are adding some html formatting to the action which isn't so nice. Another option that I have used while waiting for the next version of JSTL is the jakarta string taglib: http://jakarta.apache.org/taglibs/doc/string-doc/intro.html eg |str:replace replace=NL