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.
Implement the Reorganised Controller in the Tutorials web application. It must work exactly like the example from the book.
Controller.java
,
ControllerHelper.java
and HelperBase.java
files
in the ch3.reorganised
package in the Source Packages
folder in NetBeans. RequestDataDefault.java
file in the
ch3.defaultValidate
package in the Source
Packages folder in NetBeans. ch3/reorganised
subfolder in the
Web Pages folder in NetBeans.
StartExample
controller; but, be
sure that each one references the data from the bean in the helper.
Replace all param.xxx with helper.data.xxx. ControllerHelper
class. Names are
case-sensitive. /ch3/reorganised/Controller
. 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
If you do not already have one, add a hypertext link to the Tutorials web app in the index.jsp file in the ROOT web app on ocelot,. Use a relative reference.
Upload the WAR file to me: Submitting homework on-line via the Web.