Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » context path
context path [message #81571] Wed, 09 March 2005 04:13 Go to next message
Eclipse UserFriend
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) ?
Re: context path [message #81621 is a reply to message #81571] Wed, 09 March 2005 11:29 Go to previous message
Eclipse UserFriend
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) ?
>
>
Previous Topic:CVS project file set
Next Topic:context parameters
Goto Forum:
  


Current Time: Thu Jul 17 09:05:48 EDT 2025

Powered by FUDForum. Page generated in 0.09693 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top