aspose file tools*
The moose likes JDBC and the fly likes problem with inserting formatted text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
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: 172
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: 172
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: 172
Thanks,
I'll try it.
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
It works good.
Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with inserting formatted text