Hi savino,
you can get message resources instance using
MessageResources messageResources = getResources(request) ;
if you have multiple message resources you can get specific message resource
as
MessageResources messageResources = getResources(request, "bundleName")
;
Now to get corresponding message using key
messageResources.getMessage("Action.a");
messageResources.getMessage("Action.b");
Regards,
Venkata Phanikumar.g
----- Original Message -----
From: "Marcello Savino" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[email protected]>
Sent: Thursday, September 21, 2006 3:24 PM
Subject: Applicationresource.properties
How can i get any value from ApplicationResource.properties passing a
key in an Action object?
I mean something like that:
Let's say this is my ApplicationResource.properties file:
Action.a=Add
Action.b=Build
In an Action object I need to read the value "Add" by passine the key
"Action.a".
Any help will be appreciated
Ciao, Marcello
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]