That is because you are trying to submit to an action in one module from another. I bet that action="private/secondfile" will work.
This sounds bad to have to add the module name but it isn't. This is because most of the time you will always be submitting to the same module and struts will add the module prefix for you. To get from one module to the other (linking and not posting to) I use global forwards in my struts config. Like in my main module I have <html:link forward="usermgmt.home" /> and in my main modules struts config I have a <forward name="usermgmt.home" path="/usermgmt/home.do" /> Any other time that you are not going between modules then you don't have to worry (do anything) for the modules to work (because struts knows by going through the controller first since you don't directly link to JSPs from JSPs which module you are "in"). Hope that helps. -----Original Message----- From: Raj Atchutuni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 7:36 PM To: [EMAIL PROTECTED] Subject: Re: Multiple struts-config files - help The following is the error message i get when i am trying to configure multiple struts-config files. It could NOT retrieve mapping for the action path in the second config file(i.e struts-config-private.xml) Here are the entries in my web.xml and 1,2 struts-config files. in jsp file i have "action=/secondfile" in form element. if i switch "action=/firstfile", it is working. Can any one help me please. - Raj [6/12/03 16:01:01:594 EDT] 34b56128 WebGroup X Servlet Error: Cannot retrieve mapping for action /secondfile: javax.servlet.jsp.JspException: Cannot retrieve mapping for action /secondfile at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:871) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:543) ------------------------"web.xml"------------------------------------------- ------ <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config-public.xml </param-value> </init-param> <init-param> <param-name>config/private</param-name> <param-value>/WEB-INF/struts-config-private.xml </param-value> </init-param> ------------------------"struts-config-public.xml"-------------------------- ------ <action path="/firstfile" type="org.apache.struts.webapp.example.LogonAction" name="logonForm" scope="session" validate="true" input="/logon.jsp"> <forward name="success" path="test.try"/> </action> ------------------------"struts-config-private.xml"------------------------- ------- <action-mappings> <action path="/secondfile" type="org.apache.struts.webapp.example.LogonAction" name="logonForm" scope="session" validate="true" input="/logon.jsp"> <forward name="success" path="test.try"/> </action> </action-mappings> --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

