Create the JSP “view” that gives the advice
Don’t get your hopes up. You’re going to have to wait for a few chapters before we really start talking about JSPs. This JSP isn’t actually a particularly good one, either (because of its scriptlet code, which we’ll talk about later in the book). For now it should be pretty easy to read, and if you want to experiment a little, go for it. Although we could test this JSP now from the browser, we’ll wait until after we modify the servlet (version three) to see if it works.
Here’s the JSP...

Deploying the JSP
We don’t compile the JSP (the Container does that at first request). But we do have to:
1 - Name it “result.jsp”.
2 - Save it in the development environment, in: /web/.
3 - Move a copy of it to the deployment environment in /Beer-v1/.

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