All I did to use multiple resource files was define them in struts-config:

<message-resources
parameter="com.tessco.partner.vscon.web.ApplicationResources"/>

<message-resources key="customerResources"
parameter="com.tessco.partner.vscon.web.CustomerResources" />

And identified them in the jsp by specifying the bundle:

<html:errors property="fname" bundle="customerResources" />

Mark

-----Original Message-----
From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 10:59 AM
To: Struts Users Mailing List
Subject: RE: Multiple resources - how to configure


> I want to use multiple resource files  in my web application 
> but cannot find a way how to configure this.

To do something like this you could extend the
org.apache.struts.util.MessageResources and
org.apache.struts.util.MessageResourcesFactory classes
and implement the functionality to read message resources
from multiple properties files.

                                -TPP

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

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

Reply via email to