CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    68

    Angry Line feed and carriage return - Text Area of the HTML in JSP

    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?

  2. #2
    Join Date
    Aug 2002
    Location
    Reykjavik, Iceland
    Posts
    201
    Why not parse the data server-side using JSP and remove the carriage return?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured