This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes tags to display return characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tags to display return characters" Watch "tags to display return characters" New topic
Author

tags to display return characters

AnilPrakash Raju
Ranch Hand

Joined: Jul 26, 2004
Posts: 137
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

Joined: Jul 26, 2004
Posts: 137
got it working.

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


Anil
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: tags to display return characters
 
It's not a secret anymore!