CIS-604 Term Project Solution

Milestone 1: Product Maintenance
For this project milestone, you’ll create a series of pages that allow you to display and add products that are available to the application.
The Index page

The Products page

The Product page


Operation
• When the application starts, it displays the Index page. This page contains a link that leads to the Products page that can be used to view and add products.
• To add a new product, the user selects the Add Product button. This displays the Product page with all text fields empty. Then, the user can fill in the text fields and click on the Update Product button to add the product.
Specifications
• Use a Product class like the one shown later in this document to store the product data.
• Use a ProductIO class like the one shown later in this document to read the product data from a text file named products.txt in the WEB-INF directory.
• Use a text file like the products.txt file shown later in this document as a starting point for the products that are available to the application.
• Use server-side validation to validate all user entries. In particular, make sure the user enters a code, description, and price for each product. In addition, make sure the product’s price is a valid double value.
• Get the Product.java, ProductIO.java, and product.txt files from your instructor. The files are also provided below:
Powered by