• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Giving new line from the string

 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know whether this is the correct forum for this question.

I bulid a string in my application and display that on browser using JSP.

i have string "text1,text2,text3". i want display it as
text1,
text2,
text3.

I have build the string as "text1,"+"<br>"+"text2,"+"<br>"+"text3".

When i display this using,
<bean: write name="name1" property="prop1"/>
it comes as it is without applying the line breaks.
text1,<br>text2,<br>text3.
How can i achieve the line breaks from the string.
 
Dom Lassy
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<bean: write name="name1" property="prop1" filter="false"/>
 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dom. It worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic