On Fri, 5 Dec 2003, Lawrence Williams wrote: > Aman, > > Thanks for your reply, > > However I cant see what you are suggesting here? Can you describe what you are > meaning? - > > btw I don’t use the <application> param because as far as im aware it is deprecated > in favour of the <message-resources> element. > > The crux of my problem is that my index.jsp (Welcome file) cant seem to resolve any > of my module's <global-forwards>. However if I type a direct url to > http://host/app/module/logon.do the module works fine.
That's correct. The container is serving up your "index.jsp" based on the uri from the web.xml (*.do), so anything under /yourapp (or whatever your context is) will be used by the container. Bascially what that means is that "Struts hasn't come into the picture yet". Unless you specifically swith to a different module (which requires a GET or POST to something that goes through the ActionServlet (*.do in your case), then the default configuration is used. There is a simple module-switching example that I put together and is available here: http://sourceforge.net/projects/struts - go down to "simple", and look for "Module Switching Examples" > > Regards > Lawrence > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 05 December 2003 10:51 > To: Struts Users Mailing List > Subject: Re: Problems with modules > > Hi, > Make the following changes in ur web.xml to ur specific configuration file > > <servlet> > <servlet-name>action</servlet-name> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > <init-param> > <param-name>application</param-name> > > <param-value>fr.improve.struts.webapp.layout.example.ApplicationResources</param-value> > </init-param> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml</param-value> > </init-param> > > > > Thanks & Regards, > > Aman Sheriff > > --- > MoTech Software Pvt. Ltd. > 56, Mogra Village Lane, > Andheri East > Mumbai - 400 069 > > ph : 91 -22 - 821 4541 x 1412 > fax : 91 -22 - 820 8757 > --- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James Mitchell Software Developer / Struts Evangelist http://www.struts-atlanta.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]