Hello,
I am trying to create two modules. I am following the docs here:
http://struts.apache.org/userGuide/configuration.html
What I have done, is create both entries in my web.xml file like the example
shows:
<servlet>
<servlet-name>unique</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/module1</param-name>
<param-value>/WEB-INF/struts-module1.xml</param-value>
</init-param>
Now I am on the default side, and I entered a entry like so, to use the
forwards to the other side (module1, struts-module1.xml) like so:
<forward name="/foobar" contextRelative="true" path="/module1/foobar.do"
redirect="true"/>
Now in the struts-module1.xml I do have an entry like so:
<action path="/foo" forward="/html-multibox.jsp" />
At a web-browser, I enter this url:
http://localhost/unique/foobar.do in doing so, I would assume that I would be
calling the default side, with the foobar.do forward, which would then call the
other module with a path of foo, thus displaying the /html-multibox.jsp page.
But, instead I get the error each time that states:
[ERROR] RequestProcessor - Invalid path /foobar was requested
Any ideas what I am doing wrong? Is the path wrong in the forward from the
default side?
Any help would be appreciated.
Also, in my default app, I have extended the RequestProcessor, do I need that
entry in my "module1" struts-config.xml. I couldn't find any information on
that.
Thanks,
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]