CGS4825 Assignment 5

Due Wednesday, 11/22 at 11:59 pm.

To hand in the assignment, zip your webapps directory and upload it from ocelot.

Be sure that all your files and subdirectories are included in the zip file.
After uploading, do not modify your files on ocelot until after your assignment has been graded.

If you attempted HW4, but were unable to complete it, see me for help.

jdbc:mysql://ocelot.aul.fiu.edu:3306/fall06_username

Adding JAR Files

For this assignment, you must add JAR files to your web application. You may develop your assignment on ocelot or you may use NetBeans.

If you are developing on ocelot, then you need to copy the JAR files from my directory to your lib directory.

  1. Change to the lib directory of your web application.
  2. Issue the command
    unzip ~downeyt/cs/public_html/cgs4825/smaller.jar.zip
  3. Modify the .cshrc file and include a CLASSPATH statement for each JAR that is in the lib directory of your web application. You may add them by hand as you did in the last assignment or run the following command.
    ~downeyt/public/bin/addJars.pl  book
  4. If you do the above commands, then you will have all the jar files that are needed for all the applications though Chapter 5. The zip file includes the jars that you added from Chapter 4. In addition, the CLASSPATH variable in .cshrc has been updated so that you can compile on ocelot.

If you are developing on NetBeans,

  1. Download the zip file, from the book site, to your computer.
  2. Unzip it.
  3. Open NetBeans and right-click on the project name in the Projects tab.
  4. Select Properties.
  5. Select Libraries.
  6. Click the Add Jar/Folder button.
  7. Navigate to the directory where the unzipped JAR files are.
  8. Select all the JAR files you want to include in the web application.

After you have deployed the WAR file to ocelot, you will need to edit the .cshrc file and include a CLASSPATH statement for each JAR that is in the lib directory of your web application. You may add them by hand as you did in the last assignment or run the following command.
~downeyt/public/bin/addJars.pl  book

Post Servlet Controller

Implement the Post Servlet application, from Chapter 5, on ocelot. Place it in the book web application. Do not change the application in any way. You are to get it working exactly as I have it working.

Persistent Data Controller

Implement the Persistent Data application, from Chapter 5, on ocelot. Place it in the book web application. Do not change the application in any way. You are to get it working exactly as I have it working.

Web Application

In the welcome page for the book web application, add links to each controller.