No luck with the SwitchAction. To recap, I have a "bin" module and a "datasharing" module, and I want to do a submit from the bin module to an action in the datasharing module.
In struts-config-bin.xml: <action path="/switchToDatasharing" type="org.apache.struts.actions.SwitchAction"/> In struts-config-datasharing.xml: <action path="/multiItem" name="multiItem" scope="request" type="com.bah.ebspnp.datasharing.MultiItemAction"> <forward name="success" redirect="true" path="/homepage.do" contextRelative="true"/> </action> In my JSP in the bin module: <html:form action="switchToDatasharing"> <input type="hidden" name="prefix" value="/datasharing"> <input type="hidden" name="page" value="/multiItem.do"> And the app barfs: org.apache.jasper.JasperException: ServletException in '/datasharing/multiItem-body.jsp': Cannot retrieve definition for form bean null That actually makes sense to me, because the switchToDataSharing action doesn't have a form bean. The form bean is in another module, which is the whole reason I wanted to use SwitchAction in the first place ;) It looks like Struts does not support this. Of course I can just do HTML and forget about the <html> tag library, but I would prefer seeing a module attribute added to the <html:form> tag. Thoughts anyone? Thanks, Matt ----- Original Message ----- From: "Reinhard" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, August 10, 2003 5:41 AM Subject: Re: <html:form> and multiple modules > have you tried to embed your switch-action in the action-attribute of > <html:form ...> > i.e. <html:form > action="/yourSwitchAction?prefix=/yourDesiredModule&page=/theActionToProcess YourForm/> > > cheers Reinhard > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]