On August 13, 2003 06:56 pm, Craig R. McClanahan wrote:
> On Wed, 13 Aug 2003, Paul Yunusov wrote:
> > Date: Wed, 13 Aug 2003 17:46:57 -0400
> > From: Paul Yunusov <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: Mapping Struts controller servlet to webapp root: trouble
> >
> > On August 13, 2003 05:30 pm, Sgarlata Matt wrote:
> > > As far as I know this is an issue that is specific to your web server
> > > and outside the scope of struts.  For example, in tomcat I believe the
> > > solution is to put your app in the <<tomcat root>/webapps/ROOT
> > > directory.
> >
> > No, I was wondering about mapping the Struts servlet to the webapp's root
> > URL, not putting a webapp at the server's root. I have still not heard
> > from anyone if Struts doesn't support it.
> >
> > That's what I am talking about (web.xml):
> > <servlet-mapping>
> >  <servlet-name>action</servlet-name>
> >  <url-pattern>/*</url-pattern>
> > </servlet-mapping>
>
> If you're using JSPs, this mapping will totally disable them because it
> maps things like "/index.jsp" back to the controller servlet again.

That's exactly what happened. Thanks for pointing this out to me.

>
> Struts requires either a prefix-match (/do/*) or extension-match (*.do)
> mapping.  See Section 5.4.2 of the User Guide.

I know why now. Thanks.

>
> > Paul
>
> Craig

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to