Programming for the WWW G22.3033-009

Homework Assignment #3
Homework Due:
Nov 11, 2002

Create a Servlet that loads and saves a customer object to a file called customerfile.txt in the current working directory. You should be able to enter data into a web page and it gets saved to a file on the server.

Use the code created to handle a customer.

Create a Servlet that returns a HTML form initially.

When a user pressed the SAVE button it does a POST and the servlet then gets the information from the POST parameters and saves this customer information to a file.

then the web server returns a new page that is:

It reads the saved file back in and then does a .toString() to get data and create a simple HTML page

See the files in the lecture set for ideas including:

bullet      GVBooksOnlineWithDB.html    //use to cu and paste the form into your servlet if you wish
bullet      GVBooksOnlineWithDB.pdf  //do NOT just copy this text as your assignment

Be sure to zip up all the servlet related files including the complete web application directory and its subdirectories and files.

 Example zip the MyWebModule and its subs.

 Copyright Poelman & Associates, Inc. (c) 2002 
For problems or questions regarding this web contact [ClassWebEmail].
Last updated: 11/05/02.