CGS4825 Assignment 3

Due Monday, 3/5 at 11:59 pm.

To hand in the assignment, zip your cgs4825 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 HW3 files on ocelot until after your assignment has been graded.

If you attempted HW2, but were unable to complete it, see me for help, this week.

Default Validation

Implement the Default Validation application, from Chapter 3, on ocelot. Place it in the book web application. You may use NetBeans to develop locally, but the assignment is not complete until it is deployed on ocelot.

In the index.jsp of the web application, add a hypertext link to the controller.

Reorganized Controller

Implement the Reorganized application, from Chapter 3, on ocelot. Place it in the book web application. You may use NetBeans to develop locally, but the assignment is not complete until it is deployed on ocelot.

In the index.jsp of the web application, add a hypertext link to the controller.

Apache

Create a directory named errors in your docRoot directory.

When a page that does not exist is requested from the Apache server, a reponse code of 404 is returned to the browser along with a default page that describes the error. Configure the Apache server so that your own custom error page is returned for a 404 error. Place your custom page in the errors directory.

When a restricted page is requested from the Apache server, a reponse code of 403 is returned to the browser along with a default page that describes the error. Configure the Apache server so that your own custom error page is returned for a 403 error. Place your custom page in the errors directory.

Test that your error pages work by creating two hypertext links in the cgs4825.html page in the docRoot.

  1. Create a hypertext link to a file that does not exist.
  2. Create a hypertext link to a file that the server cannot read. You may create a new file in the docment root and change its permissions appropriately.

Do not add a cgs4825.html file to the errors directory. Be sure that when the directory is requested that it displays a fancy directory listing.

Add a HEADER.html file to the errors directory. Include your name. This file will not appear in the directory listing.

Add a README.html file to the errors directroy. Inlcude the course name and section. This file will not appear in the directory listing.

Edit the access.conf file and create a new Directory tag for the errors directory. Make the following changes so that they only affect the errors directory.