struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: problem with modules : Cannot retrieve mapping
Date Thu, 06 Jul 2006 18:38:58 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message