Skip to content

22. The code from the article

Readers can find the code for the examples in this document on the article’s website, in the form of a zipped file.

- contents of the zip
- Contents of the [lib] folder

The [lib] folder contains the libraries used by the various projects studied. The [lib] folders for the different projects have been emptied to reduce the size of the zip file. You will therefore need to retrieve the libraries required for a project from the [lib] folder above. In the [lib] folders of the [mvc-personnes-0XB] web projects, the archives for the [dao], [service], and [web] layers of the application built by the associated [mvc-personnes-0X] projects have been left intact:

Image

To run the examples with a database, the reader must adapt the [DataSource] configuration found in the various configuration files to their own environment. This object specifies:

  1. the class name of the JDBC driver for the DBMS being used
  2. the URL of the database to be used
  3. the owner of the connections open to the database
  4. the owner’s password.

Items 2 through 4 depend on the environment used for testing.