Re: newbie servlet deploy question

2001-03-02 Thread Milt Epstein
On Fri, 2 Mar 2001, Bo Xu wrote: > Jason Novotny wrote: > > > I would like to be able to access a servlet with the URL > > http://localhost:8080/demo > > > > However, it only works if I go to > > http://localhost:8080/demo/servlet/demo > > > > I have the following in server.xml and web.xml r

Re: newbie servlet deploy question

2001-03-02 Thread Bo Xu
Jason Novotny wrote: > I would like to be able to access a servlet with the URL > http://localhost:8080/demo > > However, it only works if I go to > http://localhost:8080/demo/servlet/demo > > I have the following in server.xml and web.xml respectively: > > docBase="webapps/

Re: newbie servlet deploy question

2001-03-02 Thread Bo Xu
Jason Novotny wrote: > I would like to be able to access a servlet with the URL > http://localhost:8080/demo > > However, it only works if I go to > http://localhost:8080/demo/servlet/demo > > I have the following in server.xml and web.xml respectively: > > docBase="webapps/

Re: newbie servlet deploy question

2001-03-01 Thread Jan Labanowski
OK, I found few minutes before my head hit the keyboard... I am not coy, I am overworked... And lengthy explanations take time to type... On Thu, 1 Mar 2001, Milt Epstein wrote: > On Thu, 1 Mar 2001, Jan Labanowski wrote: > > > You may want to read about servlet URLs ramapping in my > >http

Re: newbie servlet deploy question

2001-03-01 Thread David Crooke
mod_rewrite is your friend - it's a steep learning curve but worth it Milt Epstein wrote: > On Thu, 1 Mar 2001, Jason Novotny wrote: > > > I would like to be able to access a servlet with the URL > > http://localhost:8080/demo > > > > However, it only works if I go to > > http://localhost:8080/d

Re: newbie servlet deploy question

2001-03-01 Thread Milt Epstein
On Thu, 1 Mar 2001, Jan Labanowski wrote: > You may want to read about servlet URLs ramapping in my >http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml > Howver, I am not sure it will gonna work... > You can have it remapped to http://localhost:8080/demo/demo > but what you want is t

Re: newbie servlet deploy question

2001-03-01 Thread Milt Epstein
On Thu, 1 Mar 2001, Jason Novotny wrote: > I would like to be able to access a servlet with the URL > http://localhost:8080/demo > > However, it only works if I go to > http://localhost:8080/demo/servlet/demo [ ... ] How timely! I just joined the list yesterday, and this is exactly one of the

Re: newbie servlet deploy question

2001-03-01 Thread Jason Novotny
Thanks, Jan I actually read your great document plus all the docs in Tomcat- actually I'm trying to design a web app very much like the one in chapter 9 of the kolb and fields book. The idea is to have a central controller servlet- DemoServlet that gets invoked initially by the user. I

Re: newbie servlet deploy question

2001-03-01 Thread Jan Labanowski
You may want to read about servlet URLs ramapping in my http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml Howver, I am not sure it will gonna work... You can have it remapped to http://localhost:8080/demo/demo but what you want is to have null path in the context to correspond to your

newbie servlet deploy question

2001-03-01 Thread Jason Novotny
I would like to be able to access a servlet with the URL http://localhost:8080/demo However, it only works if I go to http://localhost:8080/demo/servlet/demo I have the following in server.xml and web.xml respectively: BTW, should I comment out or use the following in some way?