• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

preserve line breaks from jtextarea when storing in database

 
Sidhu roy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to preserve line breaks of jtextarea while storing and retrieving text from database(oracle)?
thanks.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just read the data from the JTextArea into a String and store that String into the database. Why do you ask? Did you already try something which failed to preserve the line breaks? If so, let's have a look at your code and get it fixed up.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic