How about:
<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</param-value> </init-param> </servlet> <servlet> <servlet-name>controlAction</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>WEB-INF/control-config.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>controlAction</servlet-name> <url-pattern>control/*.do</url-pattern> </servlet-mapping> Ian Ian D. Stewart Open Systems Engineer II Enterprise Midrange - Bank One Infrastructure & Operations [EMAIL PROTECTED] (614) 213-6100 "David Erickson" <[EMAIL PROTECTED]> on 07/25/2003 01:43:26 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Mailing List" <[EMAIL PROTECTED]> cc: Subject: Using Actions with specific paths Hi I have been having a very difficult time implementing this, basically what I'd like to do is have Struts match some actions based on the path they are executed from, but I am not sure how to setup the web.xml for that nor the struts-config.xml. Example I'd like: /mywebapp/navigate.do runs a different action class than /mywebapp/control/navigate.do And I am confused at how to setup the struts config to match the /control part, and how exactly I need to setup the web.xml to map everything to struts thats *.do. Right now in web.xml it looks like: <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> But I'm thinking that if I also add /control/*.do that the struts config would match navigate from either path to the same class?? I don't know if i explained myself clearly.. but any help would be greatly appreciated. Thanks, David --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]