you can have comma separated config file for struts. you specify it in your web.xml example:
<web-app> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value> /WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml, /WEB-INF/struts-config-manager.xml,/WEB-INF/struts-config-reports.xml </param-value> </init-param> ... now, the thing is each xml file should conform to dtd definition. each xml file should contain <struts-config> ... </struts-config> for starters. HTH -richard ----- Original Message ----- From: "J, Sadhasivam (Cognizant)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, June 24, 2003 1:34 PM Subject: RE: How do I configure multiple struts-config files? Yes please so far i understood that one controller serverlt in web-application will take one Struts-config.xml i am interested please -----Original Message----- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:59 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? struts config.xml is for single for web application/context web.xml will contain details of ure stuts-config.xml so now u want ure web-application with different contexts.. do it with multiple struts-config.xml mentioned in web.xml incase u need a sample i can send across cheers!!! -----Original Message----- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:58 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? Means.. i didn't get u. -----Original Message----- From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:53 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? hello you can have multiple with struts need to configure sub app details in web.xml -----Original Message----- From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:53 AM To: Struts Users Mailing List Subject: RE: How do I configure multiple struts-config files? I don't think struts will allow multiple configuration file and its always one controller and one configuration file. -----Original Message----- From: Bob Byron [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:48 AM To: [EMAIL PROTECTED] Subject: How do I configure multiple struts-config files? It doesn't seem like it should be this hard, but I am trying to use multiple struts-config files. I keep getting errors. I have attached my configuration and error below. Any help is appreciated. I am using struts 1.1 rc2. By the way, whenever a config file can't be found, a NullPointerException is thrown. I hope a more meaningful message is in the works. From web.xml <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml</para m-value> </init-param> From log: 23:52:19,585 WARN [org.jboss.jbossweb] WARNING: action: Parsing error processing resource path /WEB-INF/struts-config.xml,/WEB-INF/abc-struts-config.xml java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1299) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j ava:741) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:408) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at Thank You, Bob --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]