Chapter 9. The Good Eats! Web Site

9.1 What Is the Good Eats! Web Site?

Good Eats! is an imaginary food appreciation web site that we are using to demonstrate the techniques described in the previous chapters. GoodEats! is, first of all, a virtual community for food lovers. Its primary attraction is a database of recipes, which registered members and guests can search. It features a forum in which members can participate in discussions of food topics, and it has an aggregation of RSS feeds of food-related articles. Registered members of the web site can contribute to the recipe database and post messages in the forum.

This chapter reviews this site. First, it describes the business and technical requirements of the web site. Then, it discusses how the web site is constructed using Facelets for the user interface, Enterprise JavaBeans for the domain model, and MySQL for the database.

9.2 Requirements

The business plan of the Good Eats! web site includes the following of business and technical requirements.

9.2.1 Business requirements

The operator of the Good Eats! web site intends to generate income from online advertising. To make this site attractive to advertisers, Good Eats! must enroll a large number of registered members. Therefore, the web site includes the following features, which were designed to attract food lovers and to encourage them to register as site members:

Searchable Recipe Database

A large recipe database that can be searched in a several ways, such as by food categories ...

Get Facelets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.