Here is my very first
servlet.
I have compiled the servlet at this location:
D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\jsp\Whitehead\chap11
So thus in the directory there is two files:
ServletOKlogin.java
ServletOKlogin.class
I have then created A WEB-INF folders inside chap11 and then another inside WEB-INF called classes. Inside this folder I have put the file ServletOKlogin.class, here is the path:
D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\jsp\Whitehead\chap11\web-inf\classes
Below is the very simple servlet
Please not I am using
Tomcat webserver
Then in the browser to execute the servlet I enter this URL in the address:
http://127.0.0.1:8080/myJSPs/jsp/Whitehead/chap11/ServletOKlogin but I get an error:
HTTP 404 - File not found
Internet Explorer
Do I need to do anything else??