In this module, you will learn how to use advanced features
to modify the format of your Web pages, add a feature that allows
users to upload files to the database, set up rules that will automatically
send users to a particular page, and automate some administrative
tasks such as key generation.
Learning objectives
This module teaches you more powerful ways to use data
from a database. In this module, you will:
- Format database records on a Web page
- Add a component that allows uploading files to a database from
a Web page
- Navigate from page to page automatically
Time required
This module should take
approximately 1 hour and 30 minutes to complete. If you decide to
explore other facets of dynamic Web sites while working on the tutorial,
it could take longer to finish.
Prerequisites
Complete Module 1: Creating
Web pages with data connections, and begin working on Lesson 2.1: Format a data table.
The majority of your
work in this sample will involve the following files:
- all_records.jsp
- This is the site's home page. It will display every classified
ad in the database.
- new_record.jsp
- This page will create a new classified ad.
- update_record.jsp
- This page will change the details about an ad in the database
or delete it.
- classifiedTemplate.jtpl
- This is the template for the site pages. It includes elements
like the table and the gray "Welcome to the Classifieds" banner that
are on every page. This page also has two navigational tabs below
the gray banner that lead to the home page and the new classified
ads page.