Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Giving new line from the string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Giving new line from the string" Watch "Giving new line from the string" New topic
Author

Giving new line from the string

surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
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.


SCJP 1.4
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
<bean: write name="name1" property="prop1" filter="false"/>
surendar prabu
Ranch Hand

Joined: Jul 24, 2006
Posts: 102
Thanks Dom. It worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Giving new line from the string
 
Similar Threads
Cross browser issues
Updateable ResultSet just for doing inserts: good idea?
form name as a value of textbox.
Trapping Browser Close Event
Error displaying parameter