File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
wood burning stoves
 
subject: problem with inserting formatted text