I'm trying to create the example that tests requesting init paramters on p.154 of the Head First Servlets and JSP book. This example isn't a full tutorial, but I wanted to see if I can make it work.
I can load the first form page in my browser, but when I click on the submit button, I receive this error:
So it's looking like Tomcat can't find the TestInitParams servlet?
Here's my DD web.xml:
Here's the html for the initial form page:
And here's the code for the servlet:
The form.html file is in the directory c:\\tomcat\webapps\ch5
The DD web.xml file is in c:\\tomcat\webapps\ch5\WEB-INF
And the TestInitParams.class servlet is in c:\\tomcat\webapps\ch5\WEB-INF\classes\com\example\web