my dog learned polymorphism
The moose likes JDBC and the fly likes problem with inserting formatted text Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "problem with inserting formatted text" Watch "problem with inserting formatted text" New topic
Author

problem with inserting formatted text

Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 171
How could I insert formatted text from my JTextArea into mysql database.
The only formatting I'm currently interesting in, is preserving "carriage return".
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Not sure about the answer but you have a great name
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 171
Govori Srpski da te ceo svet razume!
Allen Chan
Ranch Hand

Joined: Jun 07, 2002
Posts: 64
you don't have to do anything, just insert and mysql will keep carriage return, when you pull out the text, simply put
<pre>
selected text
</pre>
and it will show exactly the same input enter.
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 171
Thanks,
I'll try it.
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 171
It works good.
Thanks again.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: problem with inserting formatted text
 
Similar Threads
printing man pages
Retrieve database records as xml
Image based spam.
Differentiate between text and url
extract columns of data from text files