Grid from database table
Generates grouped grid from plain table by dynamic layout script
Do not run this file locally!
Run it from your local or remote web http server where is installed JAVA JRE.
Generates treetable from standard database table. Also flips the table and shows data in changed layout. For every action there is used another support code (Layout, Data, Upload). The layout is also generated.
Rows are identified by one unique editable column, with using full ids (including parents ids). For demonstration it shows id column, to see what ids are generated by TreeGrid.
Source files:

Grid.html

(this html page),

GridLayout.jsp

(server script generates XML layout),

GridData.jsp

(server script generates XML data),

GridUpload.jsp

(server script saves XML changes),

../Database.*

(source SQL database, table TableData)

You have to copy file hsqldb.jar to your JRE shared lib directory and restart your http server


The JSP service program must have write access to all files database.*


The

hsqldb.jar

is JDBC driver for

HSQLDB database

and is located in TreeGrid distribution in /Server/Jsp/ directory. The shared lib directory is usually jre_install_path/lib/ext and also e.g. in Tomcat is usually tomcat_install_path/shared/lib.
You can use any other SQL database instead of HSQLDB (e.g.

Oracle

,

MS SQL server

,

MySQL

,...), just assign different connection to java.sql.Connection Conn in the *.jsp files. You can run the ../MySqlUTF8.sql script to create the "TreeGridTest" sample database on your SQL server.