Chapter 15. INTEGRATING SERVLETS AND JSP

Topics in This Chapter

  • Obtaining a RequestDispatcher

  • Forwarding requests from servlets to dynamic resources

  • Forwarding requests from servlets to static resources

  • Using servlets to set up beans for use by JSP pages

  • An on-line travel agency combining servlets and JSP

  • Including JSP output in servlets

  • A servlet that shows the raw HTML output of JSP pages

  • Using jsp:forward to forward requests from JSP pages

Servlets are great when your application requires a lot of real programming to accomplish its task. As you've seen elsewhere in the book, servlets can manipulate HTTP status codes and headers, use cookies, track sessions, save information between requests, compress pages, access databases, generate GIF images on-the-fly, ...

Get Core Servlets and JavaServer Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.