File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: validation for bean:write
jQuery in Action, 3rd edition