On 16 May 2001 18:03:53 -0400, Dan Brown wrote:
> Is there a way to do it with the Servlet spec? mod_rewrite is Apache
> server specific and I would like to have this capability for ANY Servlet
> 2.2 or greater compliant container. The spec allows a servlet class to
> be mapped as a URL context. For a normal servlet, you map that servlet
> to a specific URL context and it invokes the servlet. Explicitly
> mapping the turbine servlet to a URL context still requires the
> /servlet/appname to be appended to the context, leading me to believe
> that it is being treated as path information for the Turbine Servlet.
> If this is true, it would be nice to truely configure a turbine webapp
> to be able to map http://host/appname to the default page caused by
> http://host/appname/servlet/appname url. It just seems a bit redudant
> to require the extra /servlet/appname path information.
I wonder... have you tried adding a <servlet-mapping> tag in the web.xml
file, including the extra path info in it?
>
> - Dan
>
> Jon Stevens wrote:
>
> > on 5/16/01 9:48 AM, "Dan Brown" <[EMAIL PROTECTED]> wrote:
> >
> >> How can someone configure Turbine to have the URL
> >> http://hostname/appname/servlet/appname to be http://hostname/appname
> >> instead? It appears that servlet/appname is really pathinfo information
> >> judging from the web.xml. Is that correct?
> >>
> >> Thanks,
> >>
> >> - Dan
> >
> >
> > Use: mod_rewrite
> >
> > -jon
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
"Create like a god, Bruno Unna <[EMAIL PROTECTED]>
command like a king, Internet de Alta Calidad
and work like a slave." Red Hat Certified Engineer
Kawasaki PGP public key available
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]