Hello to everyone....
I am trying a very simple example on servlet. When i do my coding in Netbeans it works fine but we all know that doing programs in Notepad is always good for beginners so when i did i get the 404 error. I am using Tomcat 5.5
1) My HTML file saved as Basic_Servlet.html
Unfortunately, you are still having a problem. By placing code under the servlet examples, you are actually making use of the dreaded Invoker Servlet.
This unfortunate invention, which was intended to make it easy for beginners, lets you get away with servlet classes not defined in a package. Thus failing when you attempt to deploy anywhere but the examples.