F IGURE A.2
The Tomcat default page.
The next step is to verify the installation of your JDK. You do this by executing one of the JSP
examples provided with the Tomcat server. To execute a sample JSP, start from the page shown
in Figure A.2 and choose JSP Examples. You should see a screen similar to Figure A.3.
Now choose the JSP example Date and select the Execute link. If everything was installed
properly you should see a page similar to Figure A.4 (with a different date, of course).
If you do not see this page, you need to make sure the location of your JDK matches the loca-
tion specified by the JAVA_HOME variable in the tomcat.bat file.
Adding the DJS Web Application
The final step in setting up the djs Web application, which is also our final step in setting up the
Tomcat server, is to create a new Web application entry in the
<SERVER_ROOT>/conf/server.xml file. This is the configuration file for the servlet containers.
To add the new entry, add the following section of text at the end of the <ContextManager> tags:
<Context path=”/djs” docBase=”webapps/djs”