How eclipse and Tomcat work together?
I have a problem understanding the concepts of how Eclipse and Tomcat work together.
Let's say I have managed to get Tomcat into servers in my eclipse and its up and running. Now I make a new Dynamic Web Project and make only one servlet in it(no jsp-s, html-s, databases or anything else).
First question: I'm not able to find a web.xml file anywhere on the left pane when i explore my project. Should I create it manually or is it somewhere? Anyway when i run my web project through eclipse it opens an integrated browser window that says Error 404.
Second question: Where does eclipse but the class files and what kind of a structure Eclipse uses?
When I manually make a web app i make folder under web apps and in this folder there will be the web-inf folder and classes folder and so on. When i do a project in eclipse then nothing will apear in tomcat webapps folder. Files all appear in my workspace folder but the structure how they are put there is not like that. And how will Tomcat find the files in my workproject. Is there an extra file somewhere that leads Tomcat to my workspace?
In conclusion i have a real hard time understanding the concept of how Eclipse and Tomcat work together, how much is done automatically and how much do I have to do manually. I havent found a source that would explain all this so that I could understand.