Replacing Newline Characters in Java and JSTL
October 26, 2015 by Bo Andersen
In this article, we will take a look at how we can replace newline characters in Java. Additionally, we will implement a custom JSTL tag so that we can replace newline characters with corresponding <br /> break lines within JSP files. Unlike PHP’s nl2br function, for instance, this is not as easy in JSTL. Replacing… read more