Before saving the text of textarea into JSP session attribute, replace the newline character by a sign you will not use in textarea.
Before display the text on textarea, replace the sign by newline
here is the code in jsp, it is a better habbit that you put it in javabean
<%@ page import="java.util.regex.*"%>
<%
Pattern p = Pattern.compile("\n"

;
Matcher m = p.matcher("hello\nhello\nhello\nhello"

;
boolean result = m.find();
StringBuffer sb = new StringBuffer();
while(result) {
m.appendReplacement(sb, "@"

;
result = m.find();
}
m.appendTail(sb);
out.println(sb.toString());
%>