You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Dan Brown <db...@foundryinc.com> on 2001/05/16 18:48:53 UTC

How do you change URI to...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How do you change URI to...

Posted by Bruno Unna <br...@iac.com.mx>.
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" <db...@foundryinc.com> 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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 
"Create like a god,                Bruno Unna <br...@iac.com.mx>
 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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How do you change URI to...

Posted by Dan Brown <db...@foundryinc.com>.
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.

- Dan

Jon Stevens wrote:

> on 5/16/01 9:48 AM, "Dan Brown" <db...@foundryinc.com> 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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How do you change URI to...

Posted by Jon Stevens <jo...@latchkey.com>.
on 5/16/01 9:48 AM, "Dan Brown" <db...@foundryinc.com> 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

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org