Lesson 3: Populate the Web site with Web pages
This lesson illustrates how to create Web pages from a Web site
structure.
Once you have your Web site laid out using page
icons in Web Site Navigation, you are ready to begin creating your pages.
The page icons are currently bordered by broken lines; this indicates that
the file represented by the page icon, or the actual page, does not exist.
After the files are created, the page icons will have solid lines as borders.
You have now created blank pages for each of the pages you will have in
your Web site. To start the next lesson, click Next
- In Web Site Navigation, right click the page icon for the View
All Classifieds page, and from the pop-up menu click Create Page.
The New Web Page wizard appears.
- Accept the default folder (/ClassifiedsTutorial/WebContent).
- In the File Name field, type the name for
your new file, all_records. Though it can be convenient
to name your file the same as the navigation label you assigned the page when
laying out your site, you can also name your files in a way that makes sense
for the resources on your local system, and use the navigation labels only
as a naming convention for your future navigation.
- Ensure that JSP is selected under the Basic
Templates folder. For the rest of the fields, accept the defaults.
- Click Finish. The new file is opened in
Page Designer. Save and close the file. Web Site Navigation appears again.
- You can now see that the View All Classifieds icon has a solid
border and a small blue diamond icon (
) to indicate that a JSP file has been associated
with it, while the other page icons still have a broken border to show that
files have not yet been created for them.
- Continue creating JSP pages for the other page icons in the same
manner. You can also double-click the page icon to open the Create Page wizard.
For this tutorial, follow this naming convention:
- Post a Listing - new_record
- Update Listing - update_record
- Filtered Listings - filtered_records
- Press Ctrl+S to save the Web Site Navigation.
When you are finished creating the four pages, your Enterprise
Explorer view shows all of the new resources under the WebContent folder:
