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 Gardner <terry.gard...@sun.com>wrote:

>
> 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 properties
> files in the same directory as the action, but they can also be "up the
> chain". So, if my Action class is
> com.slamd.struts2.actions.SlamdStartServerResultAction.java,
> then I put the SlamdStartServerResultAction_en.properties file in
> <srcRoot>com/slamd/struts2/actions.
>
>
>> 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 require
>> any
>> changes in struts.properties? does it have to be registered there?
>>
>
> Picked automagically by getText(). Remember to change the "_en" part to the
> two letter code for the language. I only speak English - and that badly -
> so mine are all
> "_en" for the moment.
>
>
>
>> Thanks!!
>>
>> On Fri, Apr 17, 2009 at 10:44 AM, Terry Gardner <terry.gard...@sun.com
>> >wrote:
>>
>>  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 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 that its
>>>> hard
>>>> to find anything in it.
>>>>
>>>> Is there a way to over come this problem?
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to