140 likes | 154 Views
Discover servlet architecture, steps to create a Java EE web app, and deployment demonstration using Eclipse and Tomcat 7 for dynamic web projects. Includes servlet class creation and configuration guide. Learn container processes and servlet service calls. Explore Servlet API.
E N D
Building Web Apps with Servlets http://flic.kr/p/hArj5
Recall: Architecture of web app Head First Servlets and JSP (2nd edition), p. 27
Recall: Architecture of web app Recall: Use HTML forms to sendPOST requests with params Head First Servlets and JSP (2nd edition), p. 27
Recall: Architecture of web app Head First Servlets and JSP (2nd edition), p. 27
Recall: Architecture of web app Head First Servlets and JSP (2nd edition), p. 27
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 Dynamic Web 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 objectes 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