Is getResources part of org.apache.struts.util.MessageResources
if it does I don't find getResource in it I find getMessageResources which
is expecting config as parameter.
What should I supply as config from Action class ?
Hubert Rabago <[EMAIL PROTECTED]>
01/31/2006 11:29 AM
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List <[email protected]>
cc:
Subject: Re: Getting handle on application property file in
Action class.
Try something like:
String propertyValue = getResources(request).getMessage("propertyName");
Hubert
On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> Is there a way to get handle on Application property file handle in
action
> class.
> What I mean is if I specify in struts-config.xml
>
> <message-resources parameter="DICE" null="false"/>
> and drop my DICE.properties file in WEB-INF/classes directory
> Shouldn't I be able to read this property file from my DAO class which
is
> called from within DispatchAction class.
> Pls. help!
> I am getting FileNotFoundException when I am trying to read it !
> Digant
> This communication is for informational purposes only. It is not
intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
prices,
> data and other information are not warranted as to completeness or
accuracy and
> are subject to change without notice. Any comments or statements made
herein
> do not necessarily reflect those of JPMorgan Chase & Co., its
subsidiaries
> and affiliates
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.