100 likes | 122 Views
Learn how to create a Java EE web app using Eclipse, Maven, and Tomcat. Follow key steps like configuring Maven projects, creating servlet classes, and configuring the Deployment Descriptor. Understand how containers work in servlet web app architecture.
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