/    Sign up×
Community /Pin to ProfileBookmark

Carriage return in Text Area

How to insert data in with carraige return in text and display them in Text area .

imaginge 3 values

string1
string2
string3

insert above strings into database as

String1+<carraiage return>+string2+<carraiage return>

display in jsp in Text area as

string1
string2
string3

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisSep 29.2006 — Use "n".
Copy linkTweet thisAlerts:
@ray326Sep 30.2006 — Your problem is going to be putting that text area value into an SQL statement. What gil is suggesting is that you replace your <end-of-line> sequences with "n" so your SQL field value will be "string1nstring2nstring3n", maybe without that last "n".
×

Success!

Help @raghu123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...