Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Posts
    4

    Unanswered: Paragraphs and Line Breaks

    Can anyone tell me how I can get my text from a MYsql datatbase int a .jsp page and preserve the line breaks and paragraphs.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: Paragraphs and Line Breaks

    Originally posted by mdunlap1122
    Can anyone tell me how I can get my text from a MYsql datatbase int a .jsp page and preserve the line breaks and paragraphs.
    Once you've retrieved text from the database change all "\n" to "<br/>"
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Nov 2003
    Location
    Jakarta, Indonesia
    Posts
    32
    you can use textarea input tag or the <pre> tag

Posting Permissions

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