Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

proper format display from mysql

 
modesty brenin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am to display text stored in mysql on jsp page using javabean.
i am done with it really but problem is that paragraph and line breaks need to be worked out. i need to show text in paragraphs but it comes as one piece para.
i am also storing that info from another jsp/servlet pair.
do have to do the whole programming or is there any inherent property of mysql or anything else i can use.
fast replies will be appreciated. i'm need of it.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the text comes as a whole, i suppose that it contains 2 linebreaks after each paragraph. So just look for these spots and replace them with <p>
 
srinivas srinivasmeenavalli
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSS style sheet would help you better in such cases.
Don't ask me style sheet . I am bad at CSS style sheets
 
modesty brenin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:if the text comes as a whole, i suppose that it contains 2 linebreaks after each paragraph. So just look for these spots and replace them with <p>



it comes as one string with no line breaks
 
modesty brenin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am resolved anyway.
thanks a lot guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic