Iam trying the first exercise in HF book. I created static html form.html and placed it in webapps/Beer-v1 directory in tomcat. After starting tomcat, I typed http://localhost:8080/Beer-v1/form.html in browser. But iam getting a http error404 with message resource not available.
I then copied my form.html to webapps/servlet-examples(servlet-examples direcory was already present after I installed tomcat)and tried http://localhost:8080/servlet-examples/form.html and I found that form is getting displayed correctly in my browser.
Any one know why the static html page is not getting displayed from Beer-v1 directory ?
In order for the Beer-v1 directory to be recognized as a web app, create a directory called "WEB-INF" inside of it. That tells Tomcat that it should serve content out of Beer-v1.