Web Applications are not like the regular stand-alone java applications. You cannot just write a java class and run it. The components of a web application like JSPs, Servlets, XMLs etc will not run properly unless they are all compiled and placed in the proper directories. There are numerous other settings that you need to do as a web application developer in order to get your code running.
In