Re: Accessing ApplicationResources in Action class (AFTER changing locale)

2006-09-18 Thread Ted Husted
What is the idiom for obtaining the message from other than the default (English bundle). If I change the locale to "es", the tags work fine, but I can't seem to access it from the Actoin. MessageResources resources = getResources(request,getLocale(request).toString()); Returns null for

Re: Accessing ApplicationResources in Action class

2006-06-13 Thread Scott Van Wart
Pankaj Gupta wrote: Can anyone please suggest how can I access ApplicationResources.properties from my Action class. Specifically I want to read the labels for my LabelValueBean object from the application resources. The validator framework has a utility class called Resources that can do

Re: Accessing ApplicationResources in Action class

2006-06-12 Thread Frank W. Zammetti
Hi Pankaj, This is the code I use when I need to get a resource string in an Action: String text = getResources(request).getMessage(getLocale(request), "messages.deleteFailed"); HTH, Frank Pankaj Gupta wrote: Hi, Can anyone please suggest how can I access ApplicationResources.properties f

Accessing ApplicationResources in Action class

2006-06-12 Thread Pankaj Gupta
Hi, Can anyone please suggest how can I access ApplicationResources.properties from my Action class. Specifically I want to read the labels for my LabelValueBean object from the application resources. regards, Pankaj - T