Hi. I have the same problem. Have you solved it? ben wrote: >Hi there, > >Question: Has anyone successfully worked with multiple modules? I experience >quite some problems, see below. > >Cheers Ben > > > >>-----Original Message----- >>From: ben [mailto:bewalther@tiscalinet.ch] >>Sent: Dienstag, 8. Juli 2003 02:54 >>To: 'Struts Users Mailing List'; 'Jing Zhou' >>Subject: Linking between non-default module. WAS: RE: jsp >>links to stay >>within module >> >> >>I'm still struggling in with this. >> >>To recap: Using Struts 1.1rc2. Basically I want to do just a >>simple link >>between 2 jsp's that reside in moduleA, which is not the >>default module. >>This worked when using the org.apache.struts.actions.SwitchAction even >>though its a bit cumbersome since I do not really need to >>switch but access >>just a jsp within the same module. >> >>2nd I also have link that passes parameters and needs to resolve to an >>action to do the processing of those. >> >> >>The action mapping can however never be resolved. I have the following >>setup: >> >>1. JSP: (inside module osscatalog) >>> paramName="prod_list_el" paramProperty="name"> >>View >> >> >>2. struts-config-osscatalog.xml >> >> > name="prodSubmitForm" >> path="/prodView" >> type="com.ctp.cosi.osscatalog.web.ProductSubmitAction" >> unknown="false" >> scope="session" >> input="/productList.jsp" >> parameter="view" >> validate="false"> >> > name="success" >> path="/productView.jsp" >> redirect="false" /> >> >> >> >>3. Exception: >> >>org.apache.jasper.JasperException: Cannot retrieve mapping for action >>/osscatalog/prodView >> >> >>Can anyone help or has anybody just worked with modules at >>all and knows if >>there are any issues? Is Struts 1.1 rc2 stable?Thanks a lot. Ben >> >>BTW: >>I use not the href but the page attribute which is correct >>according to the >>docs. The href can only be used when setting the hrefbase which i do. >> >>The module-relative path (beginning with a "/" character) to >>which this >>hyperlink will transfer control if activated. >> >> >> >>>-----Original Message----- >>>From: Stephen Brown [mailto:Stephen.Brown@servador.com] >>>Sent: Montag, 7. Juli 2003 22:05 >>>To: 'Struts Users Mailing List'; 'Jing Zhou' >>>Subject: RE: jsp links to stay within module >>> >>> >>>Use >>> or >>href='/prodSubmit.do' > >>> >>>steve >>> >>> >>>>-----Original Message----- >>>>From: ben [mailto:bewalther@tiscalinet.ch] >>>>Sent: July 7, 2003 3:45 PM >>>>To: 'Struts Users Mailing List'; 'Jing Zhou' >>>>Subject: RE: jsp links to stay within module >>>> >>>> >>>>Unfortunately this is then a absolute link to the webserver >>>>root and not >>>>relatively to the deployed application root. This does not >>>>work, at least >>>>with my setup. ;( >>>> >>>> >>>> >>>>>-----Original Message----- >>>>>From: Jing Zhou [mailto:jing@netspread.com] >>>>>Sent: Montag, 7. Juli 2003 21:28 >>>>>To: Struts Users Mailing List; bewalther@tiscalinet.ch >>>>>Subject: Re: jsp links to stay within module >>>>> >>>>> >>>>>You might want to give a try >>>>> >>>>> >>>>>The leading slash is important. >>>>> >>>>>Jing >>>>> >>>>>----- Original Message ----- >>>>>From: "ben" >>>>>To: "'Struts Users Mailing List'" >>>>> >>>>> >> >> >> >>>>>Sent: Monday, July 07, 2003 11:15 AM >>>>>Subject: RE: jsp links to stay within module >>>>> >>>>> >>>>> >>>>> >>>>>>But using the switch action is a bit strange since I do not >>>>>> >>>>>> >>>>>want to switch >>>>> >>>>> >>>>>>module but stay in the current module. >>>>>> >>>>>>Hm however if the module is only request scoped... ??? >>>>>> >>>>>> >>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Sandeep Takhar [mailto:sandeep_takhar@yahoo.com] >>>>>>>Sent: Montag, 7. Juli 2003 17:59 >>>>>>>To: Struts Users Mailing List; bewalther@tiscalinet.ch >>>>>>>Subject: Re: jsp links to stay within module >>>>>>> >>>>>>> >>>>>>>there is a SwitchAction that you can use. >>>>>>> >>>>>>>someone else probably has more details... >>>>>>>sandeep >>>>>>>--- ben wrote: >>>>>>> >>>>>>> >>>>>>>>Hi, >>>>>>>> >>>>>>>>I link 2 jsp's in moduleA (=not default module). >>>>>>>>In order for struts to stay within moduleA i learnt >>>>>>>>i cannot href the jsp >>>>>>>>directly, because the module will then switch again >>>>>>>>to the default. I cannot >>>>>>>>make the module session persistent, right? >>>>>>>> >>>>>>>>When then using a forward action like below, I get a >>>>>>>>404: >>>>>>>> >>>>>>>>message Invalid path /prodSubmit was requested >>>>>>>> >>>>>>>>source jsp: >>>>>>>>Submit a >>>>>>>>Product
>>>>>>>> >>>>>>>>struts-config-moduleA.xml: >>>>>>>> >>>>>>>> >>>>>>> >>>>>>>>type="org.apache.struts.actions.ForwardAction" >>>>>>>> name="prodSubmitForm" >>>>>>>> >>>>>>>>parameter="/osscatalog/prodSubmit.jsp"/> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>Ideas? >>>>>>>> >>>>>>>>Cheers ben >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>--------------------------------------------------------------------- >> >> >>>>>>>>To unsubscribe, e-mail: >>>>>>>>struts-user-unsubscribe@jakarta.apache.org >>>>>>>>For additional commands, e-mail: >>>>>>>>struts-user-help@jakarta.apache.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>__________________________________ >>>>>>>Do you Yahoo!? >>>>>>>SBC Yahoo! DSL - Now only $29.95 per month! >>>>>>>http://sbc.yahoo.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>--------------------------------------------------------------------- >> >> >>>>>>>To unsubscribe, e-mail: >>>>>>> >>>>>>> >>>>struts-user-unsubscribe@jakarta.apache.org >>>> >>>> >>>>>>>For additional commands, e-mail: >>>>>>> >>>>>>> >>>>>struts-user-help@jakarta.apache.org >>>>> >>>>> >>>>>> >>>>>> >>>>>> >>--------------------------------------------------------------------- >> >> >>>>>>To unsubscribe, e-mail: >>>>>> >>>>>> >>>struts-user-unsubscribe@jakarta.apache.org >>> >>> >>>>>>For additional commands, e-mail: >>>>>> >>>>>> >>>>struts-user-help@jakarta.apache.org >>>> >>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>--------------------------------------------------------------------- >> >> >>>>>To unsubscribe, e-mail: >>>>> >>>>> >>struts-user-unsubscribe@jakarta.apache.org >> >> >>>>>For additional commands, e-mail: >>>>> >>>>> >>>struts-user-help@jakarta.apache.org >>> >>> >>>> >>>> >>>> >>--------------------------------------------------------------------- >> >> >>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >>>>For additional commands, e-mail: >>>> >>>> >>struts-user-help@jakarta.apache.org >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: struts-user-help@jakarta.apache.org >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > > -- ? ?????????, ?.??????.