But be careful because validator breaks in a certain case if you do such a thing. i.e. there is no way to do this: <arg0 key="label.name" bundle="ASSISTENT_RESOURCE_KEY" />
And if you are using modules you have to do bundle="ASSISTENT_RESOURCE_KEY/modulename" in the JSP tags. Which I'm not saying is broken, I'm just saying be aware of the usage for modules. !!!!! -----Original Message----- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 4:29 AM To: Struts Users Mailing List Subject: AW: Can I have more than one properties file and retrieve from them based on the context YES, you can. you have to define them in struts-config: <message-resources parameter="resources.ApplicationResources" /> <message-resources parameter="resources.Assistent" key="ASSISTENT_RESOURCE_KEY" /> <message-resources parameter="resources.psxsetup" key="PSX_SETUP_RESOURCE_KEY" /> in your jsp you can access to them like: <bean:message bundle="ASSISTENT_RESOURCE_KEY" key="assistent.text.organization.save"/>'; the link is between the key attribute in strurs-config and the bundle attribute in the <bean:message>. but keep i mine: you can have only ONE message-ressorces without a key attribute in struts-config. this is then your default properties. -----Ursprüngliche Nachricht----- Von: Sakis Chatzinikolaou [mailto:[EMAIL PROTECTED] Gesendet: Do 29.05.2003 09:09 An: Struts Users Mailing List Cc: Betreff: Re: Can I have more than one properties file and retrieve from them based on the context Hi Thiru, No, you just have to set the language in the request and it opens the right properties file on its own. setLocale(request, new Locale(language, country)) in an action class Hope this helps Sakis ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 8:51 AM Subject: Can I have more than one properties file and retrieve from them based on the context Hi, I am using struts <bean:message/> tag to retrieve messages from properties file. I need to specify the properties file name in web.xml for the action servlet. Can I have more than one properties file and retrieve it from the properties file by specifying some identifier. For e.g., <bean:message key="xx.xx" file="xx"/>. Regards, Thiru ---------------------------------------------------------------------------- ---- > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]