You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kenneth R. Kress" <kk...@home.com> on 2000/09/20 03:45:57 UTC

Re: solution required -- Path aliasing

You might want to take a look at these:
 
How do I use servlet aliasing, so the URL
"http://foo.com/mywebapp/servlet/a.b.c.MyServlet" can become
"http://foo.com/mywebapp/Thingy"? 
http://www.jguru.com/jguru/faq/view.jsp?EID=134402

and 

 How do I make servlet aliasing work with Apache+Tomcat?
http://www.jguru.com/jguru/faq/view.jsp?EID=140877

   Ken.


On Tue, 19 Sep 2000, you wrote:
> Hi,
> 
>  i am currently running servlets using Tomcat. but i want the URL path to
> run servlet to be something like this.
> http://localhost:8080/firstname/secondname/com.*.*.servlet. And i want my
> servlets classes to reside in a different directory other than the default
> directory.
> 
> As of now i have put the classes in D:\work\version2.0\Web-inf\classes. To
> access the classes here, i have to use the url
> http://localhost/version2.0/servlet/com.*.*.servlet.
> 
> The context which i have added is
>  <Context path="/version2.0" docBase="D:\work\version2.0" debug="0"
> reloadable="true" > 
>         </Context>
> 
> Is it necessary that i need to have 'servlet' in my url to run servlets.
> Can any of you help me in this regard and tell me what changes i have to
> make to access the servlet through the url
> http://localhost:8080/firstname/secondname/com.*.*.servlet.
> 
> Thanks in advance
> vishnu
> 
> 
> 
> > Vishnu vardhan y
> > Infosys*
> > ________________________________
> > Work #: +91-808520261 x 50760
> > 
> > 
> >
-- 
Kenneth R. Kress                                kkress@home.com