The project is growing and we need few developers to work on it. I am trying to deploy the application using the struts modules. We are using tiles so every module has it's own module directory with both tiles-config.xml and struts-config.xml.
I am having the following problems , a lot of my actions are ending with a forward to a tile definition.
For example upon success the the forward is newpage.page where newpage.page is a tile definition. Before using modules all worked fine, but now am getting the following error
java.lang.IllegalArgumentException: Path AgentWelcomePage.page does not start with a "/" character
at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:378)
It looks like the controller thinks it is a forward to an action and not to a tile.
My web.xml looks like this
<servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>config/albums</param-name> <param-value>/WEB-INF/albums/struts-config.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
And the struts-config.xml for the albums module has the following plugin definition
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<!-- Path to XML definition file -->
<set-property property="definitions-config" value="/WEB-INF/albums/tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>
Any Ideas what went wrong here ? Regards Haim
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]