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
2)My servlet saved as My_Demo.java
3) My web.xml
Thanks in advance.
Vigneswaran Marimuthu wrote:that's great... Even i am learning JAVA. basically i am from ECE.
Same here learning Java but i am from IT.
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.
See numerous examples in this forum history.
William Brogden wrote:Unfortunately, you are still having a problem. By placing code under the servlet examples, you are actually making use of the dreaded Invoker Servlet.
Thank you for explaining a topic "Invoker Servlet" which i never knew.