Hi,
I have a form in a
JSP that posts to a
Servlet. The servlet extracts all of the field values in the form, uses StringBuffer to make a big
string out of them all, and then uses that String as the body of an email.
Everything is working fine except where the user inputs more than one line in a <textarea>. The line breaks are being stripped out of the field when it is converted to a String.
So, instead of seeing this in my email:
Line1
Line2
Line3
- I get this:
Line1 Line2 Line3
Is there a way to preserve the line breaks?
Thanks
D.
[ October 06, 2006: Message edited by: Bear Bibeault ]