Thanks I do see that in the javadoc, and it takes a request. The return is a
MessageResources object. I am good with all that, but how do I isolate the
property file that I configured in the struts-config.xml <message-resources
parameter="globalResources" null="false" />?
According to the API, it looks like I could just ask for the String by asking
MessageResources.getString("findthis");
But if I have two or three message-resources, how do I tell MessageResources
where the value for my string lives?
Thanks,
Scott
-----Original Message-----
From: Scott Piker [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 2:23 PM
To: Struts Users Mailing List
Subject: RE: message-resources question
Yes, you can. Take a look at getResources(request)
- Scott
-----Original Message-----
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:10 PM
To: [email protected]
Subject: message-resources question
In an action class, can one get access to the message-resources?
<message-resources parameter="globalResources" null="false"/>
I use the resources from JSP pages, but do not know if I can access them
from a action class in the execute method?
Thanks,
Scott
---------------------------------------------------------------------
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]