|  | 
| 
| Re: context path [message #81621 is a reply to message #81571] | Wed, 09 March 2005 11:29  |  | 
| Eclipse User  |  |  |  |  | This implies that you want the webapp containing the servlet to be the "default" webapp.  The default webapp is the one that handles requests
 that don't match up with any other webapps being served.  One of the
 main functions of this webapp is to provide error handling when this
 occurs.  As you would expect, Tomcat already has a default webapp.  Its
 the one called ROOT under the webapps directory.  Note that the only
 other functionality the ROOT webapp supplies is a "here I am" page for
 "http://localhost:8080/", so this URL doesn't display an error.
 
 If you want to alter or improve this error handling or "here I am" page,
 you can rename or delete Tomcat's ROOT webapp and specify an empty
 string for the Context root in your project.  I won't guarantee that
 WebTools won't have problems with having an empty string for the context
 path, but you can try it and see if it works.
 
 If you are looking to put "real-webapp" functionality into the default
 webapp, I would recommend against that.  It's a good way to get into
 various kinds of trouble.
 
 Cheers,
 Larry
 
 zohar wrote:
 > If I have a servlet and I want it to be invoked form
 > http://localhost:8080/zohar   - what should I do (I only managed to have it
 > invoked with http://localhost:8080/zohar/zohar) ?
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.31959 seconds