Review the partially completed, MVC beer advice web application
What’s working so far...

1 - The browser sends the request data to the Container.
2 - The Container finds the correct servlet based on the URL, and passes the request to the servlet.
3 - The servlet calls the BeerExpert for help.
4 - The servlet outputs the response (which prints the advice).
5 - The Container returns the page to the happy user.
What we WANT...

1 - The browser sends the request data to the Container.
2 - The Container finds the correct servlet based on the URL, and passes the request to the servlet.
3 - The servlet calls the BeerExpert for help.
4 - The expert class returns an answer, which the servlet adds to the request object.
5 - The servlet forwards the request to the JSP.
6 - The JSP gets the answer from the request object.
7 - The JSP generates a page for the Container.
8 - The Container returns the page to the happy user.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access