| Author |
servlets and new web directory
|
david allen
Ranch Hand
Joined: Sep 27, 2002
Posts: 185
|
|
Hi all, I have the servlets in the examples folder that comes with tomcat running fine. I have created a new directory under webapps called site1. I have added a WEB-INF directory and a directory called classes. I have added a very simple servlet called HelloWorld to site1/WEB-INF/classes. After restarting tomcat i goto the following url http://localhost:8080/site1/servlet/HelloWorld. It generates a 404 error. However if i put the same servlet in the examples/WEB-INF/classes folder and access it using its URL it works fine. I think it may have something to do with the web.xml file. Do I have to update that with the details of my servlet and if so how? Regards david
|
 |
david allen
Ranch Hand
Joined: Sep 27, 2002
Posts: 185
|
|
i have it working now thanks
|
 |
 |
|
|
subject: servlets and new web directory
|
|
|