System information
Exercise 4: Developing the sample application 47
• Implement browsing and searching (“Lesson 8: Implementing Browsing and Searching”
on page 123).
• Enable database maintenance (“Lesson 9: Enabling Database Maintenance” on page 129).
• Restrict access to the Compass Travel application by requiring user authentication (“Lesson 10:
Restricting Access to ColdFusion Applications” on page 143).
How to proceed
Each lesson in the tutorial is designed to let you proceed at your own pace. At any time, you can
stop and later return to that place in a lesson so that you can complete all the sections in the
lesson.
Each lesson guides you through a scenario to enhance the Compass Travel Trip Maintenance
application. Sections within a lesson present basic programming concepts that you need to
understand before completing the section exercises.
Depending on your programming experience, you can read the entire lesson and then proceed to
the hands-on exercises, or you can skip some information in the lesson and proceed directly to the
exercises. For each exercise, there is a completed version of each file created or modified in that
lesson. The completed solution files are in the directory cf_root/cfdocs/getting_started/solutions.
Appended to each filename is the lesson and exercise number. For example, the version of the file
tripdetail.cfm that you would have after performing the steps in Lesson 5, Exercise 4 is named
tripdetail_lesson5_ex4.cfm. To use the solution file and continue with Lesson 5, Exercise 5, copy
the tripdetail_lesson5_ex4.cfm file to the cf_root/cfdocs/my_app directory, and overwrite the
tripdetail.cfm file if it already exists in the my_app directory.
Working directories
The following table describes the working directories for this tutorial:
Locating the working directories
The working directories for this tutorial are under your web root directory. For example, the
directory path on your computer might look like the following:
• (On Windows) web_root\cfdocs\getting_started
• (On UNIX) web_root/cfdocs/getting_started
Note: When using the J2EE configuration, the cfdocs directory is under the ColdFusion web
application root. For more information, see “Saving your ColdFusion page” on page 17.
Directory Description
my_app You save all your source code in this directory.
solutions You can find solutions to all the exercises in this directory.
db You use this directory as the working directory for the Compass Travel database.
photos You use this directory to access existing trip photographs.
images You use this directory to access application image files.