I recently took advantage of the application modules feature in Struts1.1, and split a larger application into several modules. This worked fine until I removed the default module (so all modules were sub-apps) and everything stopped working. Do you always need a default module?

Here is an extract from my web.xml

  <servlet>
    <servlet-name>action</servlet-name>
   <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <!-- Seem to need a default app in order to start up properly? -->
    <init-param>
       <param-name>config</param-name>
       <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
       <param-name>config/customer</param-name>
       <param-value>/WEB-INF/struts-config-customer.xml</param-value>
    </init-param>
    <init-param>
      <param-name>config/business</param-name>
      <param-value>/WEB-INF/struts-config-business.xml</param-value>
    </init-param>
  </servlet>

If I remove the first <init-param> (param-name=config) all the other modules stop working. Is this expected behaviour? If so, is there any particular reason for this? If not, any suugestions for what could be causing the sub-modules to break?

Thanks,

Guy


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to