Running Tomcat

Before you can start playing with Tomcat for real, you'll need to set it up. Refer to Appendix A,“Getting and Installing JDK and Tomcat,” for the appropriate walkthrough for your operating system and setup for Tomcat.

Under Linux, you won't see much because the process is running in the background. Under Windows, you'll see the startup window shown in Figure 1.1.

Figure 1.1. The Tomcat startup window.

By default, Tomcat listens on port 8080, so if you open up a browser and cruise to http://localhost:8080, you'll see the Tomcat splash page (shown in Figure 1.2).

Figure 1.2. The Tomcat splash page.

Poking around in the JSP examples ...

Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL 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.