You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Raj Atchutuni <ra...@yahoo.com> on 2003/06/12 22:08:45 UTC

Re: Multiple Struts-config files ???

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
 </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).