• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

proper format display from mysql

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am resolved anyway.
thanks a lot guys
 
reply
    Bookmark Topic Watch Topic
  • New Topic