CGS4854, Homework 2

Due Friday, 3/1 (late 6am, 3/2)

If you had any errors in Homework 1, then fix them, so that you don't lose points twice for the same mistake.

Apache

Apache server.

Create a Web Application using NetBeans

  1. If you have not already done so, create a web application in NetBeans, named your-username (replace your-username with your user name).
    1. If there is not a web.xml file in the WEB-INF folder, then select New File -> Web -> Standard Deployment Descriptor (web.xml) from the NetBeans menu.
    2. Use the secure web.xml file.
    3. Restrict access to this web site to you and me (this is controlled by the secure web.xml file)
    4. Edit the tomcat users file so that you can access your app in your local NetBeans.
    5. Modify the index.jsp that is in the root of the web app. Be sure it uses the HTML 5 DOCTYPE and Meta tags.
      1. Add a paragraph of at least four sentences that describes the service that you are providing. These sentences must be different from the sentences in the index.html file in the docRoot.
      2. Validate the JSP at http://www.w3c.org.
      3. Use the stylesheet. The stylesheet only needs to work when the page is accessed from Apache.
      4. Add a link to the controller for this assignment.
      5. If you did the first homework, then the first homework should also have a link to it and should still work.

Reorganised Controller

ROOT Web Application on ocelot

Be sure you have the following links in the ROOT/index.jsp file on ocelot.

Hand In Assignment

To hand in the assignment, zip the cgs4854 directory and upload it.

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.