Re: Struts.properties question

2009-04-17 Thread Jim Kiley
If you have any power over the data, you should change that so that you are not getting the SSN as an integer. It's not a number in any sense of the word except that it has digits. You never do math on it. Save it as a String if you can. On Fri, Apr 17, 2009 at 4:20 PM, Bhaarat Sharma wrote:

Re: Struts.properties question

2009-04-17 Thread Bhaarat Sharma
great! it worked out for me. One last question, I was looking at the wiki but it seems like formatting is only available for numbers and dates. is it possible to format an SSN? I am getting the SSN as an integer. but would like to show it as ###-##- On Fri, Apr 17, 2009 at 10:54 AM, Terry

Re: Struts.properties question

2009-04-17 Thread Terry Gardner
On Apr 17, 2009, at 10:49 AM, Bhaarat Sharma wrote: so I can create this new property file in the same folder where my struts.properties file resides or does it have to be in the package where action is. Good point. I forgot to mention that there is a search hierarchy. I usually put the

Re: Struts.properties question

2009-04-17 Thread Dave Newton
Bhaarat Sharma wrote: I know we can a property file in struts like this struts.custom.i18n.resources=nameofFile But is there a way to use multiple properties files? (nameofFile) IIRC this is a comma-separated list (see [1] for example); AFAIK you can have as many as you want. That said, m

Re: Struts.properties question

2009-04-17 Thread Bhaarat Sharma
so I can create this new property file in the same folder where my struts.properties file resides or does it have to be in the package where action is. so if my action name is XXX.java the property file will be XXX_en.properties and the properties file will be picked automatically or does it requi

Re: Struts.properties question

2009-04-17 Thread Terry Gardner
The resource bundles can also be in files named after the Action, for example, SlamdStartServerResultAction_en.properties, which contains keys and values (English) for the Action SlamdStartServerResultAction.java On Apr 17, 2009, at 10:36 AM, Bhaarat Sharma wrote: I know we can a propert

Struts.properties question

2009-04-17 Thread Bhaarat Sharma
I know we can a property file in struts like this struts.custom.i18n.resources=nameofFile But is there a way to use multiple properties files? (nameofFile) we have a lot of labels for our application and if we put everything into one property file then it seems to get so overwhelmingly huge tha