Hi, In order to use multiple struts config file, you need to modify the web descriptor file as mentioned below. Thus, the ActionServlet loads each of the application related config file.
<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/config/struts1.xml</param-value> </init-param> <init-param> <param-name>config/secondApp</param-name> <param-value>/WEB-INF/config/struts2.xml</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> While invoking the Action classes you need to use proper relative path. For this particular case, say you have an Action mapping - Action1 defined in struts1.xml and Action2 defined in struts2.xml To invoke them the URL should be http://hostname/Action1.do http://hostname/secondApp/Action2.do Regards, Ashutosh Satyam -----Original Message----- From: Sudhakar G [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: Multiple struts-config.xml Hi, Can any one give me a example how struts supports multiple struts-config.xml file? Thanks in advance.. cheers Sudhakar DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. --------------------------------------------------------------------- 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]