Code:
1) In java Pack() Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. If the window and/or its owner are not yet displayable, both are made displayable before calculating the preferred size. The Window will be validated after the preferredSize is calculated. http://www.cs.waikato.ac.nz/~jcleary/230/jdkdocs/api/java/awt/Window.html Rephrase your first question regarding web hierarchies.
2) The WEB-INF directory contains necessary configuration information for your web application
3) JSP is also used for dynamic programming. JSP are document centric where are Servlets act as java programs. You can read more about which to use when at http://www.devx.com/tips/Tip/25217
4) It is possible to use multiple servers on the one machine, but they all must use different ports.
5) http://localhost:8080/myapp/myservlet , this is a servlet we are running, as servlets run as java programs. While running a java program we do not give .class extension, which is why no extension has been given at the end.