I am start learning JSP and Servlet with the help of Head First JSP & Servlets. For running JSP and Servlets, the book given some sample codings.
Before that I will tell my enviornment in which I try to work.
Problem -------- I kept my "form.html" file in c:\tomcat\webapps\Beer-v1\form.html. I started the Tomcat and the index page is displaying. I also tried some JSP examples and it is working. But when I had tried to run the form.html(http://localhost:8080/Beer-v1/form.html), but it gives the following error message.
From the above thing, whether anyone tell what's the problem for the form.html file is not running while it is placed eithrt at root http://localhost:8080/form.html and http://localhost:8080/Beer-v1/form.html
Since I am following Head First JSP and Servlets book, I want to place the file where they intend to place. After two to three pgms, we can try to place the file o our convenience.
The directory needs to contain a WEB-INF subdirectory, or Tomcat will not recognize it as a web application.
Niyas Ahmed Sheikh
Joined: Jun 15, 2005
I am using Head first JSP & Servlets. In the book they clearly given what re the folders to be created for deployment and development. The following folders WEB-INF,classes,lib,etc and src I have created for deployment and development.