http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html#getResources(javax.servlet.http.HttpServletRequest,%20java.lang.String) http://marc.theaimsgroup.com/?l=struts-user&m=106641120427697&w=2
From: "Otto, Frank" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL 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 properties-file in a jsp-page I will use this:
<bean:message key="label.key" bundle="prop2"/>
It functions, but how must I use it in action classes?
// standard bundle
MessageResources res1 = (MessageRessource)request.getAttribute(Globals.MESSAGES_KEY)
// second bundle MessageResources res2 = (MessageRessource)request.getAttribute(???)
Has anyone an idea?
Regards,
Frank
_________________________________________________________________
Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet Service. Try it FREE for one month! http://join.msn.com/?page=dept/dialup
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]