Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: displaying data in JSP
05-03-2012, 08:41 AM #1
- Join Date
- May 2012
- Thanked 0 Times in 0 Posts
displaying data in JSP
I need to let users interact with my 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 value="comment"/>)
If I look how the comments are stored in DB (e.g SqlDeveloper, I can see the line breaks, tabs and spaces)
anybody knows how to solve this problem??
thanks in advance