Learn Java for Web Development

(Tina Meador) #1
CHAPTER 2: Building Web Applications Using Servlets and JSP 47

Your First Web Application Using a Servlet

In Chapter 1, you installed the Eclipse Kepler IDE. You will develop your first web application in
Eclipse in this section. Specifically, you will use Tomcat 7 both as the HTTP server and as the servlet
container. You can install Tomcat 7 by downloading the source distribution of Tomcat as a ZIP file
from http://tomcat.apache.org/download-70.cgi.


Start Eclipse and select the Window ➤ Preferences menu option to display the Preferences dialog,
as illustrated in Figure 2-3.


Figure 2-3. Preferencesdialog, verifying installed JRE

Free download pdf