tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cato, Christopher" <cc...@rational.com>
Subject RE: It worked - Can someone explain why?
Date Thu, 30 Aug 2001 07:40:54 GMT
Take a look at your web.xml for the directory mappings.

The coreservlets.name is merely a pointer to coreservlets/name.class i
guess.

> -----Original Message-----
> From: Charles Webber [mailto:charlesw7@earthlink.net]
> Sent: den 30 augusti 2001 03:36
> To: tomcat-user@jakarta.apache.org
> Subject: It worked - Can someone explain why?
> 
> 
> I am working through a book on servlets and JSPs.  JSPs and 
> beans are pretty
> easy, and I understand how things fit together  - still want 
> to work on some
> JDBC stuff, but that's later.
> In the meantime, I wrote a servlet as part of a package 
> called coreservlets.
> I finally went through the examples that came with Tomcat and 
> noticed in the
> source that it didn't use packages and figured out both how 
> to invoke my
> servlets and where to place the class file so that it would work.  The
> question is why it works this way - what is going on under the covers?
> I placed my servlet class file in a directory like
> $TOMCAT_HOME/webapps/examples/WEB-INF/classes/coreservlets/nam
> e.class.  On
> the URL in my browser, I typed in the following:
> http://host/examples/servlet/coreservlets.name - and it worked!!!
> So the confusion I have is due to the fact that the directory 
> path names
> don't match where the servlet is located.  Can anyone explain 
> this?  I'm
> sure this is pretty straightforward - and if some document points this
> ut  - if you could point me to that I'll take it from there.
> Thanks.
> 

Mime
View raw message