Thai Dang U wrote:
I have many struts config files in my application. One of them is 
struts-config-provider.xml. In this file, I declare a resource file and 
validation files like this:
<message-resource key="provider" parameter="Provider"/>
<plug-in className="org.apache.struts.validator.ValidatorPlugin">
    <set-property property="pathnames"
                        value="/WEB-INF/provider/conf/validation.xml, 
/WEB-INF/provider/conf/validator-rules.xml"/>
</plug-in>
In my validation.xml file, I have several lines like <arg0 key="form1.name"/> What do I have to do to tell Struts to use form1.name in my resource bundle (Provider.properties)? Thanks for any help.

Are you using modules? If so, and struts-config-provider.xml is configured correctly in web.xml (on the ActionServlet definition), you shouldn't need to do anything special. I'm not sure how it works if you're using multiple configuration files without modules, though.

L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/


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

Reply via email to