Hi every body,
Here is my situation... I have two modules in my application. We have developed default application (while ago) where we did not implement modularization. Now we have to develop another application which is going to become a module of first app. Following is the way I tried to modularize my app.
The web.xml looks like...
...
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/bb</param-name>
<param-value>/WEB-INF/struts-config-bb.xml</param-value>
</init-param>
..
The Action class...
under execute method.. {
mapping.findForward("bbModule");
}
The struts-config...
<action-mappings>
<action path="/secureLogon" type="com.LogonAction" name="secureLogonForm" scope="request">
<forward name="bbModule" path="/bb/accountSummary.do" contextRelative="true" redirect="true"></forward>
</action>
</action-mappings>
The struts-config_b....
<action-mappings>
<action path="/accountSummary"
type="com.AccountSummaryAction"
name="accountSummaryForm">
<forward name="success" path="/WEBINF/pages/bb/accountSummary/accountSummary.jsp" /> </action>
</action-mappings>
The AccountSummary class's execute method has..
return mapping.findForward("success");
Every thing works fine until I request accountSummary.jsp to display. I am developing under WSAD 5.1.1. In debug mode, I can see that I am returning from AccountSummary class (referenced in struts-config-bb.xml) with a "success" forward value. After this I will get "page can not be found" error page. The url on the browser points to correct path (
http://localhost:8080/IBWS/bb/accountSummary.do). I tried to follow
struts module switching example. I don't know what I am doing wrong. BTW..The "IBWS" is the root of the app. Without modules, this application is working fine. But when I want to switch between modules, I have problem.
Your help is greatly appreciated. Thank you very much.