It sounds to me like you were using the <
Tomcat Home>/webapps/ folder as the ROOT path, and placing all your data in there. This is a nono. Your ROOT path should be: <TOMCAT HOME>/webapps/ROOT/.
Why? The Root path (that you get to like
http://localhost:8080/) is the default Context. But any folders put in the <Tomcat Home>/webapps/ path will be considered a NEW Context and so will need a new WEB-INF folder (and will have trouble talking with servlets/jsps/sessions in other Contexts). Each Context is considered a new Application.
If you want all you folders to be part of the same application then
you should put all the folders in <Tomcat Home>/webapps/ROOT/. Anything that should be a different application should be in a different folder under <Tomcat Home>/webapps/.
Some examples:
I want to access
http://localhost:8080/index.jsp index jsp should be in <Tomcat Home>/webapps/ROOT/index.jsp
index jsp accesses a
servlet mapped to
http://localhost:8080/Process The servlet should be in <Tomcat Home>/webapps/ROOT/WEB-INF/classes/<package>/Process.class
The Process servlet forwards to a URL
http://localhost:8080/temp/alldone.jsp alldone.jsp should be in <Tomcat Home>/webapps/ROOT/temp/alldone.jsp
Later, I decide that in addition to my main application listed above, I have another, INDEPENDENT application called accounting which I access through
http://localhost:8080/accounting/accountHome.jsp. Because it is a new application I need to make a new directory under <Tomcat Home>/webapps/ and give it a new WEB-INF directory.
accountHome.jsp should be in <Tomcat Home>/webapps/accounting/accountHome.jsp
accountHome accesses a JavaBean to get some data.
The Bean should be in <Tomcat Home>/webapps/accounting/WEB-INF/classes/<package>/AccountManager.class
I hope I helped more than confused with that :-)