I am writing web application in my "development Environment " where i am writing classes .
Classes are using other SDK classes such as from java.io package and from the javax.servlet package.
When i copy these classes into Server , which is my localhost , how come container (TOMCAT) knows about the SDK classes i am importing and using into my Servlet class. I have not configuered TOMCAT to use and CLASSPATH
and all that jazz...
The basic Java runtime classes are by default available with the Java runtime (rt.jar). However servlet.jar has to be typically available to any web/app server. It is still working fine because Tomcat has got the servlet.jar in its own classpath which is NOT the exact CLASSPATH of your system.
Remember Tomcat is the RI (Reference Implementation) of Servlet/JSP and it is written in Java!