Web app server
Figure 3.7 B The user requests a JSP. C The browser issues a GET or POST . D The web
server passes the JSP request through to the application server, probably installed as a plug-
in. E The web application server begins to process the JSP. F The first time a JSP request is
made, the JSP is compiled. G The compiled JSP is a servlet. Text lines are compiled into print
statements, and Java code is passed through. H The web application server executes the JSP,
producing an HTML page, which I is returned to the user.
JSP s support tooling and generators. Because they are based on open stan-
dards and serve a large marketplace, many programming tools support
the JSP model. The interface is standard, which means it is easy to create
a JSP from HTML editors. Generators or tools can generate the command
bean templates and interaction controller templates. Many wizards create
command, JSP , and interaction controller templates. Some of the exam-
ples in this topic were created with wizards and simplified. allmystuff cre-
ated a proprietary framework to automatically generate this triangle.
Figure 3.7 shows a request for a JSP on typical commercial web application
servers. We will assume that the JSP has not yet been compiled, and that the
web application server is deployed as a web server plug-in.