This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Struts and the fly likes  validation for bean:write Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " validation for bean:write" Watch " validation for bean:write" New topic

validation for bean:write

Ritu Gupta

Joined: Feb 21, 2006
Posts: 1
how to truncate text in <bean:write> before desplay
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Where are you getting the value from? If it is coming from your action form then you can add a method there that does the truncation.

<bean:write name="myForm" property="truncatedValue" />

- Brent
It is sorta covered in the JavaRanch Style Guide.
subject: validation for bean:write
It's not a secret anymore!