Re: How format a string when it is Displayed?

2007-08-30 Thread Josh Vickery
<[EMAIL PROTECTED]> > To: > Sent: Wednesday, August 29, 2007 11:35 PM > Subject: How format a string when it is Displayed? > > > > Hi, > > > > I need help in formatting a String, when it is displayed. > > > > Here is what i am doing: > > > >

Re: How format a string when it is Displayed?

2007-08-29 Thread vamsi
ct: How format a string when it is Displayed? Hi, I need help in formatting a String, when it is displayed. Here is what i am doing: It is stored asa continous unformatted String an hence displayed as 'X'. Now, I want my social security number to be displayed as (XXX) - XX - XXX

Re: How format a string when it is Displayed?

2007-08-29 Thread Josh Vickery
http://cwiki.apache.org/confluence/display/WW/text will do what you need. Take look at the example with resource property "format.money" and note the link to http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html which has the info you need to build a format pattern. You could also

How format a string when it is Displayed?

2007-08-29 Thread sriharsha . chevuru
Hi, I need help in formatting a String, when it is displayed. Here is what i am doing: It is stored asa continous unformatted String an hence displayed as 'X'. Now, I want my social security number to be displayed as (XXX) - XX - . How can i acheive this in Struts, without actu