You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Cunningham <mc...@network365.com> on 2002/12/09 18:43:42 UTC
query on modular applications
Hello,
We are looking for some help building a modular application. We are
using Struts 1.1B2. We have had issues with not finding our message
resources. Here is snippets of our struts-config and web.xml files.
-------- web.xml
-------------------------------------------------------------------------
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/moduleA</param-name>
<param-value>WEB-INF/struts-config-moduleA.xml</param-value>
</init-param>
---------------------------------------------------------------------------------------------
Our default struts-config.xml is:
--------Default struts-config.xml
------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
</struts-config>
---------------------------------------------------------------------------------------------
Our struts-config-moduleA.xml file is:
-------- struts-config-moduleA.xml
--------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
<form-bean name="loginForm" type="com.ui.moduleA.LoginForm"/>
</form-beans>
<!-- ========== Global Forward Definitions
============================== -->
<global-forwards>
<forward name="moduleA/login" path="login.jsp"/>
<forward name="critical" path="critical.jsp"/>
</global-forwards>
<!-- ========== Action Mapping Definitions
============================== -->
<action-mappings>
<action path="login"
type="com.ui.moduleA.LoginAction"
name="loginForm"
scope="request"
input="/moduleA/login.jsp">
<forward name="success" path="/moduleA/loggedin.jsp"/>
</action>
</action-mappings>
<controller processorClass="com.ui.moduleA.ModuleARequestProcessor"/>
<message-resources parameter="resource.moduleA" />
</struts-config>
---------------------------------------------------------------------------------------------
Anyone who has built a modular application, can you please give us any
pointers as to how to build a modular application. We are continuously
getting problems not being able to find any of the action classes,
resource files in any of the struts-config module files.
Thanks,
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>