Along with JSPs, servlets are the other highly used component in J2EE web applications. Servlets are server-side applications in much the same way that way applets are client-side applications. Like JSP pages, servlets are Java classes that are loaded and executed by a servlet container that can run standalone or as a component of a web server or aJ2EE server. In fact, as we saw in Chapter 3, JSP pages are actually compiled by the container into a servlet class that is then executed by the container. However, while JSP pages are usually HTML pages with bits of embedded Java code, servlets are Java classes with bits of embedded HTML.
KeywordsBusiness Logic Uniform Resouree Identifier Member Variable Session Object View Component
Unable to display preview. Download preview PDF.