Then the problem is that you are telling the Servlet that the second struts config is in a module when you add the /private to the end of config as in config/private.
You need to find another way then to specify struts config files. It was suggested to use commas separating them with the same config init param. Let us know if that works. -----Original Message----- From: Raj Atchutuni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:52 PM To: Struts Users Mailing List Subject: RE: Multiple struts-config files - help Bailey, Thanks for your reply. I am testing this concept to implement in my team. I am trying to access the actions in 2 struts-config files from the SAME MODULE (local web project). In other words i have separate struts-config file with actions like 1. "/firstfile" in struts-config-private.xml 2. "/secondfile" in struts-config-public.xml I am testing this by switching the action in my jsp. I could access actions in default parm in web.xml ----------- default ------------- config /WEB-INF/struts-config-public.xml I read some where on the net i need some struts patches to make it work. Does any know something abt it or should i get the latest nightly build ? Thanks Raj. "Bailey, Shane C." <[EMAIL PROTECTED]> wrote: 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 and in my main modules struts config I have a 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"------------------------------------------- ------ config /WEB-INF/struts-config-public.xml config/private /WEB-INF/struts-config-private.xml ------------------------"struts-config-public.xml"-------------------------- ------ type="org.apache.struts.webapp.example.LogonAction" name="logonForm" scope="session" validate="true" input="/logon.jsp"> ------------------------"struts-config-private.xml"------------------------- ------- type="org.apache.struts.webapp.example.LogonAction" name="logonForm" scope="session" validate="true" input="/logon.jsp"> --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Free online calendar with sync to Outlook(TM). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

