struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: Does multiple modules work?
Date Fri, 11 Jul 2003 16:14:46 GMT

"ben" <bewalther@tiscalinet.ch> wrote in message
news:005f01c3478d$ae9d6fa0$376f19ac@ZRH2382...
> Hi there,
>
> Question: Has anyone successfully worked with multiple modules? I
experience
> quite some problems, see below.

Yes, modules work. I use them extensively.

You do need to make sure that you *always* go through the controller, and
don't go directly to JSP pages, and you need to use extension mapping (which
it looks like you're doing).

There is one pretty serious bug (#11932) that somehow got marked as LATER
instead of being fixed for Struts 1.1. It applies if you are using *both*
multiple modules and multiple message resource bundles. (I'll be checking in
the fix for it this weekend.) Other than that, modules work just fine.

By the way, you should really upgrade from 1.1rc2 to 1.1 Final. :-)

--
Martin Cooper


>
> 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)
> > <html:link page="/prodView.do" paramId="product_id"
> >  paramName="prod_list_el" paramProperty="name">
> > View
> > </html:link>
> >
> > 2. struts-config-osscatalog.xml
> >
> >         <action
> >             name="prodSubmitForm"
> >             path="/prodView"
> >             type="com.ctp.cosi.osscatalog.web.ProductSubmitAction"
> >             unknown="false"
> >             scope="session"
> >             input="/productList.jsp"
> >             parameter="view"
> >             validate="false">
> >             <forward
> >                 name="success"
> >                 path="/productView.jsp"
> >                 redirect="false" />
> >         </action>
> >
> >
> > 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
> > > <html-el:link href='/prodSubmit.do' > or <html:link
> > > 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
> > > > > <a href="/osscatalog/prodSubmit.do">
> > > > >
> > > > > The leading slash is important.
> > > > >
> > > > > Jing
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "ben" <bewalther@tiscalinet.ch>
> > > > > To: "'Struts Users Mailing List'"
> > <struts-user@jakarta.apache.org>
> > > > > 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 <bewalther@tiscalinet.ch> 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:
> > > > > > > > <a href="osscatalog/prodSubmit.do">Submit a
> > > > > > > > Product</a><br>
> > > > > > > >
> > > > > > > > struts-config-moduleA.xml:
> > > > > > > >
> > > > > > > >       <action path="/osscatalog/prodSubmit"
> > > > > > > >
> > > > > > > > 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


Mime
View raw message