100 likes | 107 Views
Building Web Apps with Servlets. http://flic.kr/p/hArj5. Servlet web app architecture. You write. Tomcat. Head First Servlets and JSP (2 nd edition) , p. 39. How do you create a Java EE web app? Use Eclipse. A few key steps: Create/configure Maven webapp project Create servlet class(es)
E N D
Building Web Apps with Servlets http://flic.kr/p/hArj5
Servlet web app architecture You write Tomcat Head First Servlets and JSP (2nd edition), p. 39
How do you create a Java EE web app?Use Eclipse A few key steps: • Create/configure Maven webapp project • Create servlet class(es) • Configure Deployment Descriptor (DD; aka web.xml) • With Tomcat 7, there’s not much to do • Compile, then deploy, then run Allow me to demonstrate
One more time! Head First Servlets and JSP (2nd edition), pp. 95–96
Container creates objects Head First Servlets and JSP (2nd edition), pp. 95–96
Container calls service on your servlet Head First Servlets and JSP (2nd edition), pp. 95–96
Summary • Servlet web app architecture • Servlet API http://flic.kr/p/YSY3X