Java JDBC show data JSP

Discussion in 'Java' started by polplo, May 7, 2012.

  1. polplo

    polplo New Member

    Joined:
    May 7, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I need to let users interact with my web application so they can insert their personal comments.

    I store these comments (with line breaks, tabs, spaces...) in a mysql DB, but when I get them from DB and display in JSP, no line breaks, tabs or spaces are shown...(I'm using Struts 2 s property)

    If I look how the comments are stored in DB e.g with SqlDeveloper I can see the line breaks, tabs and spaces

    anybody knows how to solve this problem??
    thanks in advance
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice