后台存储字符串时存储String val = “hello” + “\r\n” + “world”;
jsp处理:
<% request.setAttribute("vEnter", "\r\n"); %> ${fn:replace(item.val, vEnter, "<br/>")}