niels wrote:
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

Hmm, the html:form tag doesn't have a 'module' attribute. I don't use modules so I'm not sure how to handle this, but you may need to submit via the SwitchModule action.

L.


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

Reply via email to