Dear Ranchers,
I am also experiencing the same problem in getting a html page to be displayed in the browser as others had reported in an earlier
thread.
I created a directory myapp under tomcat/webapps and had only a html page ( index.htm ) in that directory. But when i access the file with the url - "http://localhost:8080/myapp/index.htm" , the browser throws a 404 - Page not found error. I have made sure that there was no spelling mistakes in the url. Also i dont have any other files or directories under myapp except the index.htm file. But the same setup works when i have myapp under tomcat/ROOT.
I saw kathy replying in the other thread that
you really should put "Beer-v1" inside the webapps directory, not at the tomcat root!
Why is it not a really good idea to place it under ROOT ?
I am able to access the other files like jsp-examples./index.htm which is directly under webapps. How is this possible since I am not able to get my page when it is under webapps directly. What could be the cause ? Am i missing something with the classpath ?
Can some one throw light on how
tomcat finds out which page to serve the browser when a request comes in ? I mean how does it know that the myapp/index.htm as in the url above is indeed under webapps only.