140 likes | 150 Views
Building Web Apps with Servlets. http://flic.kr/p/hArj5. Recall: Architecture of web app. Head First Servlets and JSP (2 nd edition) , p. 27. Recall: Architecture of web app. Recall: Use HTML forms to send POST requests with params. Head First Servlets and JSP (2 nd edition) , p. 27.
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