You can define multiple Message-resources in your struts-config.xml and 

<message-resources
    parameter="MyWebAppResources"
    null="false" />

<message-resources
    parameter="MyWebAppResources2"
    key="prop2"         
    null="false" />

To access MyWebAppResources, use
<bean:message key="aKey"/>

Then to access MyWebAppResources2.properties, just use 
<bean:message bundle="prop2" key="anotherKey"/>

Thanks,
Yuanbo


-----Original Message-----
From: Viral_Thakkar [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 3:33 AM
To: Struts Users Mailing List
Cc: satish ashok shukla
Subject: Multiple ApplicationResources.properties


Hi All,
 
Can we have multiple ApplicationResources.properties files for a
project? 
 
As of now I have a following entry in web.xml for an
ApplicationResources.properties file.
 
<init-param>
      <param-name>application</param-name>
      <param-value>ApplicationResources</param-value>
</init-param>
 
Thanks & Regards,
Viral
 
 

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

Reply via email to