--- Michael Wentzel <[EMAIL PROTECTED]>
wrote:
> > Nico,
> > - is your servlet class file located in:
> > D:\tomcat\webapps\imsapps\WEB-INF\classes
> > 
> > - are you calling your servlet via:
> > http://localhost:8080/imsapps/servlet/dejonge
> > 
> > I think this is how tomcat is set up. Correct me
> anyone if I'm wrong.
> 
> 
> These are the defaults.  You can also set up
> additional servlet mappings
> in your config files.  Examples provided in standard
> config files.
> 
> 
> ---
> Michael Wentzel
> Software Developer
> Software As We Think - http://www.aswethink.com

Hello Michael,

I have a similar problem.

My servlet class file (myservlet.class) is located in:
C:\tomcat\webapps\myweb\WEB-INF\classes

I am calling my servlet via:
http://localhost:8080/servlet/myservlet instead of
http://localhost:8080/myweb/servlet/myservlet.  I
would like to call the servlet this way so that I can
use the same URL regardless of where my web is located
relative to the Tomcat webapps directory, since I move
the web to different locations depending on whether I
am developing an off-line or on-line version. 
Hopefully I can modify the configuration file(s)
rather than change all of my HTML, JSP, etc. to use
the changed URL.

Can I call my servlet in this way? If yes, would you
please be more specific about how to set up the
servlet mapping in conf files, what conf files need to
be set up?  Particularly, would I do the configuration
in the web.xml file in c:\tomcat\webapps\myweb\WEB-INF
or in one of Tomcat's configuration files such as
server.xml?




Thank a lot.

Doris Shi


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to