?
Solved

How to detect  line break

Posted on 2003-03-02
4
Medium Priority
?
292 Views
Last Modified: 2006-11-17
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
Comment
Question by:joett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
rrz earned 100 total points
ID: 8054396
use <pre>  </pre>  for the display.
0
 

Author Comment

by:joett
ID: 8057597
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
 

Author Comment

by:joett
ID: 8057609
hi, i think i made a mistake. when i used it for display, it works perfect! :)
thank you.
0
 
LVL 28

Expert Comment

by:rrz
ID: 8057642
joett, thanks for the points
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Summer 2017 Scholarship Winners have been announced!
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question