You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by niels <ni...@gmail.com> on 2006/07/06 14:53:33 UTC
problem with modules : Cannot retrieve mapping
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
Re: problem with modules : Cannot retrieve mapping
Posted by niels <ni...@gmail.com>.
Actually I don't want to switch modules, I want to 'access' an action form
another module
On 7/6/06, Laurie Harper <la...@holoweb.net> wrote:
>
> 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
>
>
Re: problem with modules : Cannot retrieve mapping
Posted by Laurie Harper <la...@holoweb.net>.
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