• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

How to detect line break

Hi, I created a form with a textarea. But whatever I typed in like  "this
                is
                a
                test"

it always comes out one line "this is a test".

How can I detect the line break?
thank you!
0
joett
Asked:
joett
  • 2
  • 2
1 Solution
 
rrzCommented:
use <pre>  </pre>  for the display.
0
 
joettAuthor Commented:
Thank you.

But how should I invoke it?

I tried
<pre><textarea name="Message" rows="5" cols="80" wrap="VIRTUAL"></textarea></pre>

and

<textarea name="Message" rows="5" cols="80" wrap="VIRTUAL"><pre></pre></textarea>

neigher of them worked.

is there anyway that I can read the text in and insert something like <br> in my JSP page?
many thanks.

joe
0
 
joettAuthor Commented:
hi, i think i made a mistake. when i used it for display, it works perfect! :)
thank you.
0
 
rrzCommented:
joett, thanks for the points
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now