The best way to do this is to download the Bookstore example in
WAR file which is ready to run with minimal effort. The WAR file
can be placed in the webapps
directory of Tomcat, for example, and Tomcat will expand it.
You may need to add a Context
element to Tomcat's server.xml
file. The Bookstore example in WAR form contains all
dependencies needed to run and uses an in-memory database (HSQL)
that does not require additional configuration or installation.
Once these prelimiaries are performed, point your web browser to
the host and port where Tomcat (or whatever servelet container
or application server you are using) is running and open
bookstore/howto/
.
There are a few examples in this directory and a large number
examples under
bookstore/tests/
that demonstrate various features of DbForms in the simplest
form possible.
The tutorial example is described in Chapter 7, Tutorial: A sample application including information on how to run it.
Please note that the test suite and bugtracker examples include dependencies from earlier releases of DbForms. These dependencies should not be replaced with current dependencies.
examples/*/WEB-INF/*.sql
.
For Tomcat, this may be as simple as copying the directory to the $TOMCAT_HOME/webapps directory and restarting Tomcat.