- Introduction
- The Servlet Story
- Servlet and JSP History
- Web Servers and Servlet Containers
- JSP
- Chapter Summary
- Apply Your Knowledge
Apply Your Knowledge
Review Questions
What language is used to write servlets and JSP?
What is the servlet life cycle and what manages it?
What protocol do servlets and JSP use to communicate with clients?
What is the relationship between servlets and JSP?
Answers to Review Questions
-
Servlets are written in the Java language. JSPs on the other hand use a combination of HTML and Java. Eventually JSPs are converted into a pure Java servlet. See "Servlet and JSP History," earlier in this chapter.
-
The servlet life cycle refers to the loading, initialization, invoking, and killing of a servlet. The container manages this life cycle. See "Web Servers and Servlet Containers," earlier in this chapter.
-
Servlets use the HTTP protocol. See "Web Servers and Servlet Containers," earlier in this chapter.
-
JSPs are converted to servlets. First, the JSP source is parsed and a Java source file is generated. Then this source is compiled into a servlet. See "JSP," earlier in this chapter.
Suggested Readings and Resources
-
Java Servlet Technology, http://java.sun.com/products/servlet/whitepaper.html.
-
Exam objectives for the Sun Certified Web Component Developer for J2EE Platform, http://suned.sun.com/US/certification/java/exam_objectives.html.
-
The Java Servlet 2.3 Specification, http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html.
-
The Java Servlet 2.3 API, http://java.sun.com/products/servlet/2.3/javadoc/index.html.
-
Sun's basic "Writing Servlets" tutorial: http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/ servlet.html.
-
Another tutorial on learning servlets: http://java.sun.com/docs/books/tutorial/servlets/index.html.
-
The Servlet/JSP tutorial series by Marty Hall: http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/.
-
jGuru Tomcat FAQ: http://www.jguru.com/faq/Tomcat.