troubleshooting Question

Maintain Carriage Returns in Text Area while inserting in DB

Avatar of vinay518
vinay518 asked on
1 Comment1 Solution403 ViewsLast Modified:
Hi All

I have form witht text area.
The user enters some description and submits and it gets inserted in database.
But, say if the user enters some space, carriage return in the data he has entered and then submits..
the whole data gets inserted as one paragraph and when i display displays as one big paragraph.

I want to maintain the spaces and carriage returns in the same way when i display the page.
BY the way column in DB is CLOB.

How do i maintain the spaces and carriage returns ?

This web application is in Java.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros