Yes.

<message-resources parameter="ApplicationResources" null="false" />
<message-resources key="general" parameter="general.ApplicationResources"
null="false" />
<message-resources key="errors" parameter="errors.ApplicationResources"
null="false" />

Then when you refer to a message from a message resource defined above with
a key just use the 'bundle' attribute of html:errors.

-----Original Message-----
From: Fleischle, Samuel [mailto:[EMAIL PROTECTED] 
Sent: 04 April 2005 09:09
To: user@struts.apache.org
Subject: Define more than one messages.properties

I have a Struts-app with a really big messages.properties file. I want to
split this file in some smaller and logic parts to get a better overview.

 

I know there is the possibility to create modules with its own
messages.properties. But I have some messages used in every module the same
way, e.g. menu entries, error messages... But if I create modules, I have to
copy these messages in each module and if I update these messages, I have to
update them in each module. I think this is no really good way.

 

Is there any possibility, to define a comma separated list of
messages.properties in one module, the same way I define more
struts-config.xml files, which will  be concatenated at runtime?

 

Regards,

Sam


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

Reply via email to