Friday, January 18, 2002 05:39 AM
The URL for calling a servlet in a normal situation can be described as:
The 'virtual' directory /servlet/ is the default mapping for accessing to a servlet. Inside a context, this can be changed using the web application descriptor (web.xml) file. There are some examples in the FAQs and Forum's threads here on jGuru, regarding how to change the defualt mapping of a servlet through the and tags. (since is a standard servlet feature, you can find it either on this Topic and on the Servlet topic).
The part of the URL is a different issue. To remove it, you need to have your application set as the default or root context of your servlet-container (using server.xml configuration file), otherwise you cannot take that off.