I am using <bean:write> tag for displaying data in a JSP.
Is there any way to get a substring of the value i get in the property attribute of the <bean : write>
Kindly provide your help. Regards, vijay
Joined: Feb 08, 2006
I do not know of a way to get a substring. I am not sure exactly what you are trying to do but in general if I find myself having to implement logic that is more than nontrivial in my JSP, I try to move that into a method in my form. For example, if I had an SSN and I wanted to mask all but the last 4 digits I would add a method to my form named getMaskedSSN(), move the logic there and then use the property maskedSSN in my JSP.