If you've looked at any of the example apps in Simple Servlet Examples you know that they are pretty straight forward. The idea was to put only what was absolutely needed into the code to get the concept to work. Code comments and explanations were left out with the theory that, "If it needs to be explained, it's not simple enough".
There are a few things that I see people asking about in various JSP and Servlet forums that can't really be written without taking a little time to explain. For these projects I wanted to have a separate page. In them, I will add lots of comments and try to explain as much as possible right in the Java and JSP sources. These projects may also demonstrate more than one concept. In fact, they all will because they will all be written using MVC and will therefore be MVC examples as well as whatever else is in their titles.
NOTE:
All of these projects were written on Tomcat 5.5.9 and were compiled with jdk1.5.0.
They may run on older versions of Tomcat and may run (with a recompile) on an older JVM but
there are no guarantees.
Both Tomcat and the Java Software Development Kit are free
so, if you have any trouble with these apps, try upgrading your environment first.
This project uses a mock database made out of a HashMap so there is no need install or configure a relational database to run it.
Download this war file to your TOMCAT_HOME/webapps directory. Make sure that MSIE doesn't
add a ".zip" extension to it (this may be hard to tell becuase Windows by default, hides
extensions for known file types).
DynamicSelectLists.war
Then access the project by clicking on the following link:
http://localhost:8080/DynamicSelectLists
This project uses a mock database made out of a HashMap so there is no need install or configure a relational database to run it.
Download this war file to your TOMCAT_HOME/webapps directory. Make sure that MSIE doesn't
add a ".zip" extension to it (this may be hard to tell becuase Windows by default, hides
extensions for know file types).
SessionMonitor.war
Then access the project by clicking on the following link:
http://localhost:8080/SessionMonitor
Download this war file to your TOMCAT_HOME/webapps directory. Make sure that MSIE doesn't
add a ".zip" extension to it (this may be hard to tell becuase Windows by default, hides
extensions for know file types).
LongRunningProcess.war
Then access the project by clicking on the following link:
http://localhost:8080/LongRunningProcess
Download this war file to your TOMCAT_HOME/webapps directory. Make sure that MSIE doesn't
add a ".zip" extension to it (this may be hard to tell becuase Windows by default, hides
extensions for know file types).
SimpleLogin.war
Then access the project by clicking on the following link:
http://localhost:8080/SimpleLogin