Chapter 13. Creating More Powerful Servlets

Yesterday you took an introductory look at working with Java servlets. Today, you'll see more of the story, such as supporting Model/View/Controller (MVC) architecture, user authentication, and more. Here are today's topics:

  • Working with servlet sessions

  • Working with servlet contexts

  • Storing and retrieving data in sessions and servlet contexts

  • Forwarding to a new servlet

  • Including a servlet in a servlet's response

  • Invoking JSP pages from servlets

  • Model-View-Controller (MVC) architecture

  • JSP Model 1 versus JSP Model 2 architecture

  • Implementing user authentication (usernames and passwords)

There's a great deal of power in servlets, and today you'll get to see more of what they have to offer.

Tip

For more on servlets, ...

Get Sams Teach Yourself JavaServer Pages™ in 21 Days 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.