Code for servlet version three

Here’s how we modified the servlet to add the model component’s answer to the request object (so the JSP can retrieve it), and how we asked the Container to dispatch to the JSP.

image with no caption

Get Head First Servlets and JSP, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.