Question: html and servlet file
where to place the html and the servlet class files..in tomcat..
I have placed the html file under root and the class files in class folder..n WEB-INF.
but..i want to access the servlet file through ..the html file..
its showing 404 error.help me pls ;THANK YOU!!
Put html file with the jsp files amd servlet file insdie classes folder of tomcat.
You have to specify the full path of servlet on html action if you want to call servlet from html like this:
<form method="post" action="http://localhost:8080/examples//HelloWorld">
Here examples is our web application folder(inside webapps folder) and HelloWorld is out servlet. Servlet MApping is also very essential in xml file.
For more information, visit the following links: