File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Format String in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Format String in Struts" Watch "Format String in Struts" New topic

Format String in Struts

Ravi Kumar

Joined: Nov 02, 2006
Posts: 1
Hi All,
How to get the format String using Struts,i setting string to bean and after display i am using <bean:write name="formname" property="comments"/>
but i want like this
if i given like this text in text area

Ravi Kumar k
bangalore aaaaa
aa3 33 3 33 333
this text i stored into DB
After displaying also i want same format .but in bean write removing all spaces are removing .
please help me.........
thank you.
[ November 02, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

"Ravikkkkk Kumar",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Format String in Struts
It's not a secret anymore!