SCWCD 5.0 Book - Head First Servlets and JSP (HFSJ) (CX-310-083)
SCWCD 5.0 Book - Head First Servlets and JSP (HFSJ) (CX-310-083)
2.High-level overview
Section 2.1. OBJECTIVES
Section 2.2. What is a Container?
Section 2.3. How it looks in code (what makes a servlet a servlet)
Section 2.4. A servlet can have THREE names
Section 2.5. Story: Bob Builds a Matchmaking Site
Section 2.6. The Model-View-Controller (MVC) Design Pattern fixes this
Section 2.7. A "working" Deployment Descriptor (DD)
Section 2.8. How J2EE fits into all this
3.Hands-on MVC
Section 3.1. OBJECTIVES
Section 3.2. Let's build a real (small) web application
Section 3.3. Creating your development environment
Section 3.4. The HTML for the initial form page
Section 3.5. Deploying and testing the opening page
Section 3.6. The first version of the controller servlet
Section 3.7. Building and testing the model class
Section 3.8. Enhancing the servlet to call the model, so that we can get REAL advice...
Section 3.9. Create the JSP "view" that gives the advice
Section 3.10. Enhancing the servlet to "call" the JSP (version three)
4.Request AND response
Section 4.1. OBJECTIVES
Section 4.2. Servlets are controlled by the Container
Section 4.3. Each request runs in a separate thread!
Section 4.4. But a Servlet's REAL job is to handle requests. That's when a servlet's life
has meaning.
Section 4.5. The story of the non-idempotent request
Section 4.6. What determines whether the browser sends a GET or POST request?
Section 4.7. Sending and using a single parameter
Section 4.8. So that's the Request... now let's see the Response
Section 4.9. You can set response headers, you can add response headers
Section 4.10. Servlet redirect makes the browser do the work
Section 4.11. Review: HttpServletResponse
6.Session management
Section 6.1. OBJECTIVES
Section 6.2. It's supposed to work like a REAL conversation...
Section 6.3. The client needs a unique session ID
Section 6.4. URL rewriting: something to fall back on
Section 6.5. Getting rid of sessions
Section 6.6. Can I use cookies for other things, or are they only for sessions?
Section 6.7. Key milestones for an HttpSession
Section 6.8. Don't forget about HttpSessionBindingListener
Section 6.9. Session migration
Section 6.10. Listener examples
7.Using JSP
Section 7.1. OBJECTIVES
Section 7.2. In the end, a JSP is just a servlet
Section 7.3. But then Kim mentions "expressions"
Section 7.4. Time to see the REAL generated servlet
Section 7.5. The out variable isn't the only implicit object...
Section 7.6. Lifecycle of a JSP
Section 7.7. While we're on the subject... let's talk more about the three directives
Section 7.8. Scriptlets considered harmful?
Section 7.9. But wait... there's still another JSP element we haven't seen: actions
8.Scriptless JSP
Section 8.1. OBJECTIVES
Section 8.2. Our MVC app depends on attributes
Section 8.3. Deconstructing and
Section 8.4. Can you make polymorphic bean references?
Section 8.5. The param attribute to the rescue
Section 8.6. Bean tags convert primitive properties automatically
Section 8.7. Expression Language (EL) saves the day!
Section 8.8. Using the dot (.) operator to access properties and map values
Section 8.9. The [] gives you more options...
Section 8.10. For beans and Maps you can use either operator
Section 8.11. The EL implicit objects
Section 8.12. Imagine you want your JSP to roll dice
Section 8.13. Reusable template pieces
Section 8.14. With , the buffer is cleared BEFORE the forward
Section 8.15. She doesn't know about JSTL tags
Section 8.16. Bean-related standard action review
9.Using JSTL
Section 9.1. OBJECTIVES
Section 9.2. Looping without scripting
Section 9.3.
Section 9.4. Doing a conditional include with
Section 9.5. Doing the same thing with
Section 9.6. for all your hyperlink needs
Section 9.7. What if the URL needs encoding?
Section 9.8. Make your own error pages
Section 9.9. The tag. Like try/catch...sort of
Section 9.10. What if you need a tag that's NOT in JSTL?
Section 9.11. Pay attention to
Section 9.12. The tag handler, the TLD, and the JSP
Section 9.13. The taglib is just a name, not a location
Section 9.14. When a JSP uses more than one tag library