EJB & JSP: Java On The Edge, Unlimited Edition by Lou Marco ISBN: 0764548026 Your Guide to Cutting-Edge J2EE Programming Techniques. Using the JSP/Servlet Environment Now that we have reviewed the methods related to the JSP and servlet life cycles, let’s take a close look at the environment in which they exist. Understanding the JSP/servlet environment will help us to better leverage the features of this environment that are useful for writing robust Web applications. Figure 8-1 depicts the relevant environmental components and the request/response flow between clients, JSPs, and servlets. Figure 8-1: A high-level view of JSP and servlet processing HTTP, FTP, or any other supported protocol request type originates from a browser (client) and is sent to the Web server. The JSP-enabled server recognizes the .jsp extension and realizes that the request is packaged with a JavaServer Page. The server translates the JSP page into a servlet. Along the way, the original request gets passed to the _jspService method in the generated servlet. After the servlet executes, perhaps by communicating with other Java components such as JavaBeans, the servlet returns a response in the form of an HTML, XML, plain text, or other MIME- type resource. Useful Servlet Environment Features The servlet environment provides important features to JSP pages. This section describes some of these features. Session Management One advantage of using servlets and, as a result, JSPs, is that servlets provide session management services. Recall that a session is a connection between a client and a server that enables the two to share data. The server identifies sessions by using a session key, which the server stores in a dictionary-type object.
We are here to provide web hosting at an affordable rate for the online Christian community. The term “Christian” is used by various groups with diverse beliefs to describe themselves. Some people, including many born-again Christians, use a fairly specific definition of “Christian”. They believe that in order to be a Christian, one must follow Jesus, and that the proof of this is found in agreeing to and following the doctrines set forth in the Bible. Others who refer to themselves as Christians require only that one believes that Jesus is the Son of God, that he died, and that he was resurrected from the dead, to claim the term Christian.Check Christian Web Hosting section.

Leave a Reply