struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject How format a string when it is Displayed?
Date Wed, 29 Aug 2007 18:05:46 GMT

I need help in formatting a String, when it is displayed.

Here is what i am doing:

<bean:write name="someObject" property="exampleSSN"/>

It is stored asa continous unformatted String an hence displayed as 
'XXXXXXXXX'. Now, I want my social security number to be displayed as 
(XXX) - XX - XXXX.

How can i acheive this in Struts, without actually using my own custom Tag 
libraries which do this formatting for me. If somebody can throw some 
pointers, it woould help the cause.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message