• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with inserting formatted text

 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure about the answer but you have a great name
 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Govori Srpski da te ceo svet razume!
 
Allen Chan
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
I'll try it.
 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works good.
Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic