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
This is similar to the accepted answer (because it is using Java to represent the newline rather than EL) but here the
" />
${fn:replace(myAddress, newline, "
")}
The following snippet also works, but the second line of the
${fn:replace(myAddress, newline, "
")}