I am using the
struts framework in my project.
I have a just like this (Add new topic of javaranch) page.
What i do is save text in the subject and message field to my database as strings.
i get the value of message property as
and then save it to database where Message is a data field like this
Every thing is fine till this point. Problem is when i try to display this message on a different page
i get the message from database as
saving it to request
and finally display it in my
JSP page using EL
it displays the message but without any new lines i.e the message appears as a single line not like multilines the way it was actually typed.
My Question is how do we preserve the formatting of a message
like , new lines or may be font properties like color , weight etc?
Thanks for reading this.
-Prakash