Originally posted by suri jagadish:
You are right with regards to the mapping in the web.xml.
<servlet-name>HelloWorld</servlet-name> HelloWorld is the java file name
but the only problem is url which you are using to call the servlet. it should be in the following way
in the above URL you have different parts which are necessary.
http://<servername>:<port>/<context name>/<url-pattern or the name of the jsp>
The context name is the name of the folder of your application in the webapps directory of the tomcat.
Incorrect. The class hiearchy needs to be rooted at WEB-INF/classes and reflect the package structure of the classes.
Originally posted by Arjun Reddy:
Each web app will have its own WEB-INF folder. You need to find out which application you're trying to update.
I just checked tho, there are some 9 WEB-INF folders