Solved

How can I format text?

Posted on 2004-08-01
2
172 Views
Last Modified: 2010-04-01
I have a form that has several fields in it.
One field is a textarea (VarChar) field, that the user can paste many lines of data into.
Then this form actions to a JSP that writes the record to a DB2 table.
Just like this question area for EE.

My problem is that when the user paste their data, and after it gets written to the DB2 table, I then display the record for a technician to work the request, when the technician views the record it all runs together.

How can I change my code to display the pasted data just like it was put in by the customer?
0
Comment
Question by:g118481
2 Comments
 
LVL 27

Accepted Solution

by:
rrz earned 150 total points
Comment Utility
>then display the record for a technician to work the request, when the technician views the record it all runs together.          
Does the source code for the display page have the line breaks that the user entered in the textarea ?  If yes, then just use the HTML tags <pre>   </pre> .
If not, then try adding wrap attribute to textarea tag. Try something like  
<textarea  wrap="hard"  cols="yy"  rows="xx">
0
 
LVL 1

Author Comment

by:g118481
Comment Utility
There are line breaks from the textarea form field.
However, the record display for the technician is not done using the textarea form field.
I am simply outputing it from a select query.

(i.e.   <%= REQTEXT %>)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now