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 me.

-Ted.


On 6/13/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
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 from my Action class. Specifically I
> want to read the labels for my LabelValueBean object  from the
> application  resources.
>
> regards,
> Pankaj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> .
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
HTH, Ted.
* http://www.husted.com/struts/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to