JAVA JSP examples
Gantt chart

Do not run this file locally
Run it from your (local) web server where is installed your http and JSP server like Apache Tomcat and the J2SE runtime environment (JRE).

The JSP service program must have write access to all files database.* and also must have write access to the directory /ExamplesGantt/Jsp/
To permit write access on Windows XP right click to folder Jsp in My Computer, select Properties -> Security -> Users and set Full control to Allow. If you don't have Security item in Properties, run My Computer, in menu select Tools - > Folder options -> View and uncheck Use simple file sharing option.

You have to copy files hsqldb.jar and TreeGrid.jar to your JRE shared lib directory and restart your http server
These files are located in TreeGrid distribution in /Server/JSP/ directory.
The shared lib directory is usually jre_install_path/lib/ext and also for example in Tomcat is usually tomcat_install_path/shared/lib.
hsqldb.jar file is JDBC driver for HSQLDB database that is used in nearly all examples.
TreeGrid.jar is support code for using TreeGrid server side library, this library is not used in Gantt chart examples.


Example index

 
Gantt chart
How to download and upload Gantt chart in SQL database and in static XML file
Gantt Database Basic Demonstrates basic loading Gantt chart from and uploading changes to SQL database link
Gantt Database Tree Demonstrates creating Gantt chart tree from one SQL database table by grouping and uploading changes back link
Gantt File Demonstrates loading Gantt chart from static XML file and storing the complete changed file back to disk link
 
Run chart
How to download and upload Run chart in SQL database and in static XML file
Gantt Run Database Demonstrates basic loading Gantt Run chart from and uploading changes to SQL database link
Gantt Run File Demonstrates loading Gantt Run chart from static XML file and storing the complete changed file back to disk link


Gantt chart

Demonstrating TreeGrid Gantt chart, communication with database and static XML file.

Gantt Database Basic
Main file GanttBasicDB.html, support codes GanttBasicDef.xml as layout, GanttBasicDBData.jsp as data, GanttBasicDBUpload.jsp as upload
Data are in database table "GanttBasic".
Demonstrates loading data source for Gantt chart from SQL database and uploading changes back to the database.
Presents base Gantt chart features - Main bar, milestones and dependencies.

Gantt Database Tree
Main file GanttTreeDB.html, support codes GanttTreeDef.xml as layout, GanttTreeDBData.jsp as data, GanttTreeDBUpload.jsp as upload
Data are in database table "GanttTree".
Demonstrates creating Gantt chart tree from one SQL database table by grouping and uploading changes back.
The tree levels are stored in column L1 - L4 and these values are used for grouping by the same values. The example supports four levels, but can be easily extended.
Presents base Gantt chart features - Main bar, milestones and dependencies.

Gantt File Tree
Main file GanttTreeFile.html, support codes GanttTreeDef.xml as layout, GanttTreeData.xml as data source XML, GanttTreeFileUpload.jsp as upload
Demonstrates creating Gantt chart from static XML file and uploading changes back to this file.
It demonstrates also creating Gantt chart tree by grouping. The tree levels are stored in column L1 - L4 and these values are used for grouping by the same values. The example supports four levels, but can be easily extended.
Presents base Gantt chart features - Main bar, milestones and dependencies.

Run chart

Demonstrating TreeGrid Run chart, communication with database and static XML file.

Gantt Database Run
Main file RunDB.html, support codes RunDBDef.xml as layout, RunDBData.jsp as data, RunDBUpload.jsp as upload
Data are in database table "Run".
Demonstrates loading data source for Gantt Run chart from SQL database and uploading changes back to the database.
Presents all Gantt chart Run features - independent boxes, different text, color, tooltip, features and box adding, moving, copying, deleting, resizing.

Gantt File Run
Main file RunFile.html, support codes RunDef.xml as layout, RunData.xml as data source XML, RunFileUpload.jsp as upload
Demonstrates creating Gantt Run chart from static XML file and uploading changes back to this file.
Presents all Gantt chart Run features - independent boxes, different text, color, tooltip, features and box adding, moving, copying, deleting, resizing.