Note that if you use MODULES, by adding more than one "config..." init parameter in web.xml, this is not the case; there are boundaries between modules that affect calling actions, forwarding to JSPs, etc. As modules are now, they are really designed for fairly compartmentalized sub-applications which should have minimal need for cross-over; if that doesn't describe your modules, you probably don't want to use them -- but you can achieve some of the same goals by specifying a comma-separated list of struts-config files.
Daniel has it right -- having multiple files helps teams work together, and for a big app, it just makes it easier to find what you are looking for.
There are no performance implications to using more than one struts-config file, unless perhaps the servlet initialization would be infinitesimally slower.
Joe
At 9:48 AM -0800 2/12/04, Daniel Kalcevich wrote:
The advantage (from what I have read and seen) is geared more towards
team development. Having multiple struts configuration files allows you
to modularize the areas of your app, so that people aren't stepping on
each others toes with new changes. Another advantage of multiple config
files is to separate your app. For example, you could have one config
file that contains all actions the users access, and one config file
that has all actions for admin functions of your app.
Now with regards to the other questions, I am not exactly sure whether or not you could call an action from a different config file. I want to think yes, because otherwise it would defeat the purpose of allowing multiple config files. Can someone who uses two config file confirm that when struts loads, that both config files get loaded together and can reference each others parts?
HTH,
Daniel
-----Original Message----- From: koen boutsen [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 9:40 AM To: [EMAIL PROTECTED] Subject: multiple struts-config files
Hi I've read some mails about multiple struts-config files, but still have some questions: -what's the advantage of using multiple struts-config files in one application ? Is it better for performance ? -how can I call a forward or action in my second struts-config from within a jsp ? -can I call a forward or action in one struts-config from within another struts-config ?
Any help is very appreciated Koen
____________________________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default .asp?SRC=lycos10
--------------------------------------------------------------------- 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]
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

