Introduction.
Self-Assessment.
1. Servlet Methods and Life Cycle.
JSP and Servlet Overview. Handling HTTP GET, POST, and PUT Requests. Servlet Objects and Scope. Servlet Life Cycle. Using a RequestDispatcher. Event Listeners. Practice Questions. Need to Know More?
2. Deploying Web Applications.
Web Application Overview. Deployment Descriptor. Practice Questions. Need to Know More?
3. The Servlet Container.
Context Architecture. Context-Initialization Parameters. Using Listeners. Context and Attributes within a Distributable. Practice Questions. Need to Know More?
4. Servlet Exceptions.
Handling Server-Side Exceptions. Return an HTTP Error Using sendError. Return an HTTP Error Using setStatus. Exception Handling in the Deployment Descriptor. Write a Message to the Web App Log. Using a RequestDispatcher to Forward to an Error Page. Practice Questions. Need to Know More?
5. Session Management.
Session Management Overview. Session Methods. Invalidating Sessions. Practice Questions. Need to Know More?
6. Web Application Security.
Web Application Security Overview. Deployment Descriptor Security Elements. Security Concepts. Authentication Types. Practice Questions. Need to Know More?
7. Thread-Safe Servlets.
Servlet Threads. Object Scope Affects Thread Safety. Practice Questions. Need to Know More?
8. JavaServer Pages (JSP).
JavaServer Pages Introduction. JSP Life Cycle. JSP Syntax. Directive. Expression. JSP Scriptlets. JSP Implicit Objects. Declaration. Using XML to Create JSP Actions. Practice Questions. Need to Know More?
9. JSP and JavaBeans.
JavaBean Overview. jsp:useBean. jsp:setProperty Action. jsp:getProperty Action. Scope of JavaBeans in JSP. Accessing JavaBeans with Scriptlets. Practice Questions. Need to Know More?
10. Custom Tag Libraries.
Custom Tag Library Overview. taglib Directive. Custom Tag. Tag Handler. Custom Tag Body. Tag Library Descriptor. Accessing JSP Objects from the Custom Tag Handler. Returning a Tag Handler from a Method. Practice Questions. Need to Know More?
11. Design Patterns.
Servlet Design Patterns. Patterns on the Exam. Practice Questions. Need to Know More?
12. Sample Test.
13. Answer Key.
Appendix A. Servlet API Snapshot.
Overview of the Servlet API. Understanding the javax.servlet Package Interfaces, Classes, and Exceptions. The javax.servlet.http Package. Summary.
Appendix B. JSP Syntax Snapshot.
Syntax Rules. Format Conventions. Syntax Explanations and Examples. Summary. Suggested Readings and Resources.
Appendix C. Resources.
References. Reference List. Summary.
Appendix D. What's on the CD-ROM.
Appendix E. Using the PrepLogic Practice Tests, Preview Edition Software.
Glossary.
Index.
Ed Tittel is a 20-year computing industry veteran who has worked as a software developer, manager, trainer, writer, systems engineer, and consultant. He developed the Exam Cram series of certification prep tools for Coriolis, and he has written more than 100 computer books, including 30-plus certification titles. Ed teaches at Interop and Austin Community College. You can email him at etittel@lanw.com.