Hohlen, John C wrote:
I'm looking for some help on how to configure the Tiles and ValidationAll modules are independent, so you need to declare form bean definition in each module. You can have a struts-config file containing the common declaration, and use it in each module (with the multi config file capability).
Plug-Ins. A lot of the good books (Struts In Action, Programming Jakarta
Struts, etc.) and replies to the mailing list address these topics
independently, but not collectively. In addition, I took a look at James
Holmes "Switching Modules" example, but that focuses on the different ways
to switch b/t modules, not on how to configure Modules with Tiles and the
Validation frameworks.
For discussion purposes, let's assume I have following 3 modules (default, modA, modB). Here are my questions:
1) If I have a form bean definition used by all 3 modules, does it need to be defined in each of the 3 struts-config files, or can I just declare it in the default struts-config?
You need it for each module.
2) Does each modules' struts-config file need the following declaration to use the Validation framework, or can I simply declare this once in the config file for the default module?
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
You need it for each module. Some module can use different factory, or no definition factory at all.
3) For Tile Definition config files, can all of these just be declared in the default struts-config, or should they be declared in the module struts-config they correspond to (assuming you've divided your Tile definitions by module)? For example:
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs-default.xml,
/WEB-INF/tiles-defs-modA.xml, /WEB-INF/tiles-defs-modB.xml"/>
</plug-in>
Cedric
4) Can I use the default module's application resource file for text common across modules? Therefore, preventing me from having to duplicate entries across modules. If so, this means Struts always looks in the particular module's application resource first, then the default module. But this doesn't apply for form bean definitions or action mappings, correct?
5) Is the following an acceptable way to configure the application resource files:
--- struts-config.xml (default) -------
<message-resources parameter="Messages" null="false"/>
--- struts-config-modA.xml (default) -------
<message-resources parameter="Messages-modA" null="false"/>
--- struts-config-modB.xml (default) -------
<message-resources parameter="Messages-modB" null="false"/>
Thanks in advance for your help,
JOHN
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

