Compile, deploy, and test the final app!
In this chapter we’ve built an entire (albeit tiny) MVC application using HTML, servlets and JSPs. You can add this to your resume.
Compiling the servlet
We’ll use the same compiler command that we used earlier:
Deploying and testing the web app
Now it’s time to redeploy the servlet.
1 - Move a copy of the servlet’s .class file to ../Beer-v1/WEB-INF/classes/com/example/web/ (again, this will replace the previous version two class file).
3 - Shutdown and restart tomcat
4 - Test the app via form.html
Get Head First Servlets and JSP, 2nd Edition 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.