Installing the Book Examples
All JSP pages, HTML pages, Java source code, and class files for the examples can be downloaded from the O’Reilly site http://www.oreilly.com/catalog/jserverpages3/.
They can also be downloaded from the book web site that I maintain: http://www.TheJSPBook.com/.
On this site you find a Download page where you can download the file, called jspbook3.zip. Save the file on your hard drive, for instance in C:\JSPBook on a Windows platform, and unpack it:
C:\JSPBook> jar xvf jspbook3.zipYou can use the same command on a Unix platform.
Two new directories are created: ora and src. The first directory contains all examples described in this book, and the second contains the Java source files for the JavaBeans, custom actions, servlets, and utility classes used in the examples.
The examples directory structure complies with the standard Java web application format described in Chapter 2. You can therefore configure any JSP 2.0-compliant web container to run the examples.
If you like to use a container other than Tomcat, be sure to read the documentation for that container for instructions on how to install a web application.
To install the example application for Tomcat, simply copy the web application directory structure (the ora directory) to Tomcat’s default directory for applications, called webapps. On a Windows platform, you can copy/paste the directory structure with the Windows Explorer tool, or use this command in a Command Prompt window:
C:\JSPBook> xcopy ...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