There's a few options, off the top of my head: -Do the string manipulation in the (preprocessing) action -Use a combination of the Jakarta String taglib (http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/index.html) tags (such as left, right, and mid) to parse out the value (since SSN is always 9 digits) with dashes in between. -Write your own custom tag
-----Original Message----- From: Kumar M [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 10:45 AM To: Struts Users Mailing List Subject: bean:message format ssn Hi all, I am wondering if there is an easy way to format the ssnn. What I have is a String '123456789' but the users would like to see '123-45-6789'. Is there an easy way of doing this using bean:write or bean:message or any other tag? Thanks!! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

