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 Post Controller in the Tutorials web application. It must work exactly like the example from Chapter 5 of the book. In other words, it must also do required validation.
Take a look at your log file, you will see that there are messages in it.
build ->
web -> WEB-INF -> logs
error.log
file. It will look something like
this.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 and
restart the web app from your manager. 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.
rm username.zip
zip -r username ~/cgs4854/webapps/Tutorials -x \*.jar \*.zip \*.war
\*.jpg \*.png \*.gif
~downeyt/cs/public/webftp/webftp.pl