CGS4854 Extra Credit 6

Due Tuesday, 4/4 (not late until 6am, 4/5)

If you did not do a previous extra credit, then create a web application named Tutorials in NetBeans. Review the web page that contains instructions on creating a servlet in a NetBeans project: Creating a Project in NetBeans

All previous Extra Credits should still be able to be accessed and run from the application.

If you had errors in any of the previous extra credits, fix them, so that you do not lose points again for old mistakes.

There are more detailed instructions for the tutorial on the book's web site.

Implement the Post controller from Chapter 5, in the Tutorials web application. It must work exactly like the example from Chapter 5 of the book. You will have to complete the Required Validation controller in order to complete the Post controller.

Do the normal things for controllers:

Deploy Assignment

Be sure that your NetBeans project is configured so that .java files are added to the WAR file: Adding .java files to a WAR file

Clean and Build your web application. After doing this, navigate to the WAR file in NetBeans and verify that the .java files are included: View WAR File

  1. Since you are using a log file that is in the web application, you will need to shut down Tomcat before you can do a Clean and Build.
  2. Open the Services folder and open the Servers folder.
  3. Right-click the Tomcat server and select Stop.
  4. Now you can do a Clean and Build.

In the operating system (not in NetBeans) navigate to the dist folder in the NetBeans project.

Deploy the WAR file on ocelot: Deploy a WAR File. Be sure to change the permission of the error log for this assignment on ocelot to 606.

In the index.jsp file in the ROOT web app on ocelot, add a hypertext link to the Tutorials web app. Use a relative reference.

Submit Assignment

To hand in the assignment, zip the cgs4854 directory on ocelot 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.