Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Java JDBC show data JSP (http://www.go4expert.com/forums/java-jdbc-data-jsp-t28340/)

polplo 7May2012 14:23

Java JDBC show data JSP

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

All times are GMT +5.5. The time now is 05:36.