aspose file tools*
The moose likes JDBC and the fly likes proper format display from mysql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "proper format display from mysql" Watch "proper format display from mysql" New topic
Author

proper format display from mysql

modesty brenin
Greenhorn

Joined: Dec 21, 2009
Posts: 7
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

Joined: Feb 23, 2009
Posts: 1183
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>


JDBCSupport - An easy to use, light-weight JDBC framework -
srinivas srinivasmeenavalli
Ranch Hand

Joined: Jul 13, 2008
Posts: 65
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

Joined: Dec 21, 2009
Posts: 7
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

Joined: Dec 21, 2009
Posts: 7
i am resolved anyway.
thanks a lot guys
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: proper format display from mysql