Struts DataSource Manager



Home

Features

Documentation

Installation

Using

FAQ

Download

Links

License

Contacts

Building from source

Prerequisites

To build Struts DataSource Manager from source, you need Ant:

http://ant.apache.org/

To compile the library (i.e. the JAR that you will put in the "lib" directory of you web-app), you need to put these packages in the "prerequisites" subdirectory:

If you want to compile the example, you need to put also these packages in the "prerequisites" directory:

Compilation

To compile the library, go in the distribution directory and type:

ant

The file "sdsmanager.jar" will be created under the "dist" directory.

To build the example web application, go in the distribution directory and type:

ant dist-example


Installation

Simply copy the "sdsmanager.jar" in the "WEB-INF/lib" subdirectory of your Struts-based web application.


Executing the example

To execute correctly the example you have to follow these steps:

  1. Create a table in your DB with the name "MYTABLE", with at least one column.

  2. Configure the DataSource specified in the "WEB-INF/sdsmanager-config.xml" to connect to your DB.

  3. Deploy the web application that has been built under "dist/webapps/sdsmanager-example" and have fun!