Click to See Complete Forum and Search --> : Line feed and carriage return - Text Area of the HTML in JSP


martini
January 22nd, 2003, 09:04 AM
The database that I am using consists of data that has a carriage return and line feed. I am accessing this data and associating it to a javascript variable. But when I try to access this variable, it gives unterminated string literal error. This is because, in the servlet that is generated from JSP breaks the line into the next line because of the carriage return.

How do I overcome this problem?

websmith99
January 22nd, 2003, 03:41 PM
Why not parse the data server-side using JSP and remove the carriage return?