If you did not do a previous Tutorial, 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 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 Tutorials web application. It must work exactly like the example from Chapter 6 of the book.
shared package. Add these additional files to the
shared package.
AttributeType.java SetByAttribute.java HelperBaseCh6.java Controller.java,
ControllerHelper.java, and RequestComplex.java in
the ch6.comlplexPersistent package in the Source
Packages folder in NetBeans.
Controller.java file from the
ch5.persistentData package. ControllerHelper.java file from
the ch5.persistentData package.
jspLocation to the current package. RequestDataComplex.
HelperBaseCh6.
resetNullable method and clear the
appropriate properties in it. Call it before the bean is filled.
copyFromSession so that it copies the values
in the checked and selected maps. setCheckedAndSelected method after the bean
has been filled. RequestDataComplex.java from the book web site
and modify it.
RequestDataComplex.java.
Id property as is outlined in the
book, PersistentBase. complexForm application.
Change the form method to POST. complexInit application.
complexPersistent
application. /ch6/complexPersistent/Controller. create initialization parameter to the servlet
definition.
true, to create the table the first
time you run the servlet. false,
so that your data will not be lost the next time Tomcat restarts.
When you are done with everything, your directory and file structure should
look like this.
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
WEB-INF/logs directory in winscp
or on ocelot. error.log file to 606. This
will allow Tomcat to write to the file. The WAR file is too big for you to submit to me. To hand in the tutorial, zip the Tutorials web app directory and upload it. If your web app is named something other than Tutorials, then use that name in the zip command.
zip -r username ~/cgs4854/webapps/Tutorials -x \*.jar \*.zip
\*.war~downeyt/cs/public/webftp/webftp.pl