struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niels <niels.siem...@gmail.com>
Subject problem with modules : Cannot retrieve mapping
Date Thu, 06 Jul 2006 12:53:33 GMT
 have 2 modules: moduleA and moduleB
in struts-config.xml from moduleA:

<action path="/moduleATest" forward="/testA.jsp" />

where testA is located on the filesystem in : /moduleA/testA.jsp

in struts-config.xml from moduleB:
<action path="/moduleBTest" forward="/testB.jsp" />

<action
        path="/searchUserSubmit"
        type="com.lego.user.action.SearchUserAction"
        name="searchUserForm"
        validate="true"
        input="/searchUser.do">
        <forward name="success"  path="/searchUser.do" />
    </action>

in testB.jsp & testA.jsp if have:

<html:form action="searchUserSubmit.do" method="post">
<html:text property="userName" />
<html:submit property="submit">search</html:submit>
</html:form>


whe I call /moduleB/moduleBtest.do --> form is displayed

when I call /moduleA/moduleAtest.do--> error cannot retrieve mapping for
action /searchUserSubmit

So .... how to make module A aware of another module and its action
mappings?

For the html:link tag there is the attribute : module like:
<html:link module="/moduleA" action="/moduleATest.do">to test</html:link>
Is there someting simular for html:form

Thanks,
Niels

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message