wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " validation for bean:write" Watch " validation for bean:write" New topic
Author

validation for bean:write

Ritu Gupta
Greenhorn

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
 
Don't get me started about those stupid light bulbs.
 
subject: validation for bean:write
 
Similar Threads
Tag to display and fill Form
How to generate a jsp page with form in struts where input values are pre-generated?
Display Check Boxes & Dropdowns in Struts with search results
html tag label equivalent?
bean:write and integer properties