http://oak.cs.ucla.edu/cs144/projects/tomcat/index.html
Developing a Web Appliction on Tomcat
In this tutorial, you will learn how to develop a Web application for Tomcat using Java servlet and Java ServerPages (JSP) technologies and package it as a Web application archive file. Before you get started if you do not know how to start/stop the Tomcat server on our VM, please read the Tomcat startup instruction.