CGS4854 Tutorial 6

Due Monday, 11/29.

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

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

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

Implement the Complex Persistent Controller in the book web application. It must work exactly like the example from Chapter 6 of the book.

When you are done with everything, your directory and file structure should look like this.

Submitting Homework

Before you submit your homework, be sure that you have set the create parameter in the web.xml file to false.

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

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

The WAR file is too big for you to submit to me. To hand in the tutorial, zip the book web app directory and upload it. If your book web app is named something other than book, then use that name in the zip command.