I've scanned the list here and found that many people seem to be having
this same problem, so I'm going to add to it. I have a simple
application with two modules, declared in the web.xml as follows:

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>

<init-param>
<param-name>config/trackers</param-name>
<param-value>/WEB-INF/trackers/struts-config.xml</param-value>
</init-param>

The sub-module config file (/WEB-INF/trackers/struts-config.xml)
contains the following action mapping:

<action path="/create"
type="com.cyberlifelabs.issuetracker.trackers.CreateAction"
name="createTrackerForm" input="/create.jsp" validate="false">
<forward name="success" path="/profiles/create.jsp"
contextRelative="true"/>
</action>

I have a JSP page called /trackers/create.jsp with the following tag:

<html:form action="create.do" focus="name">

Whenever I try to access the JSP, I get the following error:

[ServletException in:create-body.jsp] Cannot retrieve mapping for action
/create'

If I copy the action mapping into the default module
(/WEB-INF/struts-config.xml), it works fine. No matter what value I
enter into the html:form tag (including those beginning with trackers/),
it always seems to look in the default module. I haven't looked at the
source, but if I had to guess I'd say the JSP engine isn't aware of sub-modules.

--
Milo Hyson
CyberLife Labs



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

Reply via email to