Wrap-Up

This chapter continued our networking discussions by presenting servlets that enhance the functionality of Web servers. You learned the architecture and life cycle of servlets. You learned how to respond to HTTP requests by using an HttpServlet. You also learned how to redirect requests to a static or dynamic Web resource. You executed the sample servlets with the Apache Tomcat server. You then built a multitier Web application that uses JDBC to access and manipulate a database from a servlet. In the next chapter, we introduce JavaServer Pagesan extension of servlet technology. We demonstrate several JSP componentsimplicit objects, scripting elements, standard actions and directives. We also discuss how to use CachedRowSets to access a MySQL database from a JavaBean object, then access the JavaBean object from a JSP page.

Категории