You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by A Stephen <st...@attbi.com> on 2003/02/19 09:58:53 UTC
Fw: Multiple resource files with multiple modules
----- Original Message -----
From: "A Stephen" <st...@attbi.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, February 19, 2003 12:57 AM
Subject: Multiple resource files with multiple modules
Greetings,
To Access
<bean:message key="errors.database.foreign.key"
bundle="GLOBAL/order-tools"/>
struts config message resource for module /order-tools
<message-resources parameter="application" null="false" />
<message-resources parameter="global"
null="false" key="GLOBAL" />
My question is there a easier way to access the message resource , using
this syntax The page designer would have to be aware of the where to look
for the sub-application in the web.xml and also be aware to look for the
appropriate resource bundle key to find out the key of the message
One solution that I can think of is to check and see if there is request
"prefix"
value.
That way the page designer would not have know about the sub-module
Thank you,
-S
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org