Raj, not sure if this is what you are after, but for a single module you 
can do a comma-delimited list of config files. See your web.xml below:

On 06/12/2003 04:08:45 PM Raj Atchutuni wrote:

> The following is the error message i get when i am trying to configure 
multiple 
> struts-config files. It could 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.
> 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

try this:
 
<param-value>/WEB-INF/struts-config-public.xml,/WEB-INF/struts-config-private.xml 
</param-value>

In this scenario, the last file in the list wins. So if you have an action 
in each file named the same, then the one in the last file will be used.

Hope that helps,
Susan Bradeen

> </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]

Reply via email to