Default Stage Three for Game Development: 

http://silo.cs.indiana.edu:8346/c212/spr2015/sketch-of-stage-three/

https://www.cs.indiana.edu/classes/c212-dgerman/spr2015/tylerdell.jpg

https://www.cs.indiana.edu/classes/c212-dgerman/spr2015/sampleFinal.pdf

http://silo.cs.indiana.edu:8346/c212/spr2015/exercise.phps

Stage Three for the Web Development: 

[kkowala@silo ~]$ cd second-server/
[kkowala@silo second-server]$ cat .tomcat-settings
JAVA_HOME=/usr/lib/jvm/java-1.8.0
export JAVA_HOME

CATALINA_HOME=/u/kkowala/second-server/apache-tomcat-7.0.35
export CATALINA_HOME

CLASSPATH=.:$CATALINA_HOME/lib/servlet-api.jar
export CLASSPATH
[kkowala@silo second-server]$ source .tomcat-settings
[kkowala@silo second-server]$ cd $CATALINA_HOME
[kkowala@silo apache-tomcat-7.0.35]$ pwd
/u/kkowala/second-server/apache-tomcat-7.0.35
[kkowala@silo apache-tomcat-7.0.35]$

No need for a second server this is just an example, accidental. 

[kkowala@silo apache-tomcat-7.0.35]$ pwd
/u/kkowala/second-server/apache-tomcat-7.0.35
[kkowala@silo apache-tomcat-7.0.35]$ cd webapps/
[kkowala@silo webapps]$ ls
cricket  docs  examples  host-manager  manager  ROOT  whatever
[kkowala@silo webapps]$ tree whatever/
whatever/
├── permanent
│   ├── database
│   └── inventory.txt
└── WEB-INF
    ├── classes
    │   └── junior
    │       ├── Four.class
    │       ├── Model.class
    │       ├── Quote.class
    │       └── Test.class
    ├── lib
    ├── src
    │   ├── Four.java
    │   ├── Model.java
    │   ├── Quote.java
    │   └── Test.java
    └── web.xml

6 directories, 11 files
[kkowala@silo webapps]$

So for Stage Two: 

  (a) set up whatever
  (b) set up permanent
  (c) create inventory.txt 
  (d) set up WEB-INF in whatever
  (e) set up classes and src in WEB-INF
  (f) put Four.java, Model.java and Test.java in src
Make a note of what package you are creating, mine was junior
  (g) update Model to include the path to YOUR database 
  (h) compile with javac -d ../classes *.java
  (i) go into classes and create the database 
      java junior.Four ../../permanent/inventory.txt
  (j) set up index.html in your context (mine is whatever)



Here's my <a href="/whatever/model/test?action=list">Stage Two</a>. 

<pre>

Try with ?action=(random|list|reset|save|update&id=...|delete&id=...|add&author=...&amp;quote=...)

This means:

     ?action=random
     ?action=list
     ?action=reset
     ?action=save
     ?action=update&id=6
     ?action=delete&id=6
     ?action=add&author=me&quote=something funny

</pre>

  (k) Make sure you have web.xml point to your test servlet:

[kkowala@silo WEB-INF]$ pwd
/u/kkowala/second-server/apache-tomcat-7.0.35/webapps/whatever/WEB-INF
[kkowala@silo WEB-INF]$ ls -ld web.xml
-rw------- 1 kkowala students 428 Jul 20 15:24 web.xml
[kkowala@silo WEB-INF]$ cat web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <servlet>
    <servlet-name>model</servlet-name>
    <servlet-class>junior.Test</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>model</servlet-name>
    <url-pattern>/model/test</url-pattern>
  </servlet-mapping>
</web-app>
[kkowala@silo WEB-INF]$

So now Stage Three is extremely easy. 

I decide that the entry point is /whatever/list/all and I say so in index.html

Copy all the files and compile everything then reload the context. 

If you changed the name of the package update your .jsp and web.xml

--