two resource bundles?!

2003-10-30 Thread Otto, Frank
Hi, I have defined two properties files in my struts-config.xml: message-resource parameter=resource1/ message-resource parameter=resource2 key=prop2/ If I want to access the second properties-file in a jsp-page I will use this: bean:message key=label.key bundle=prop2/ It functions, but

Re: two resource bundles?!

2003-10-30 Thread Ben Anderson
PROTECTED] To: Struts-User (E-Mail) [EMAIL PROTECTED] Subject: two resource bundles?! Date: Thu, 30 Oct 2003 13:31:16 +0100 Hi, I have defined two properties files in my struts-config.xml: message-resource parameter=resource1/ message-resource parameter=resource2 key=prop2/ If I want to access the second

RE: two resource bundles?!

2003-10-30 Thread Navjot Singh
not sure by might be Globals.MESSAGES_KEY + prop2 -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 6:01 PM To: Struts-User (E-Mail) Subject: two resource bundles?! Hi, I have defined two properties files in my struts-config.xml

Re: two resource bundles?!

2003-10-30 Thread Manish Singla
Try this.. // second bundle MessageResources res2 = (MessageRessource)request.getAttribute(prop2). I assume you are not using struts modules. see following also... org.apache.struts.action.Action protected MessageResources getResources(javax.servlet.http.HttpServletRequest request,