I have a list of bean objects passed into my JSP page, and one of them is a comment field. This field may contain newlines, and I want to replace them with semicolons using
If what you really need is a \n symbol you can use the advice from here:
${fn:replace(text, " ", "")}
or
<%-- this is a new line --%>
This includes the new line in your string literal.