This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tags to display return characters

 
AnilPrakash Raju
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to display a text that has characters in them.
eg. I got a user to type a some text in the textarea field. He may have pressed the return keys a few types.

Once i save it and display it on another page using
<bean:write name="beanName" property="field1"/>

but this removes all the returns and displays the text in one line.

Any suggestions?

thanks

Anil
 
AnilPrakash Raju
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it working.

used the <pre> tag before the <bean:write> tag


Anil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic