Mini Samples


C/C++ sample

A simple Mini-webapplication that fetches data from a table using SQL and renders a HTML table with the result.
In this sample we manually implement: the service mapping in the application entry function, and the render class. To build a application like this sample: link with libzz.lib, libzzdb_odbc.lib and libzzinet.lib. For ODBC support define _ODBC.

Source
Comment
Test.html HTML-template
testdll.cpp Main program
testdll.h  
test_render.cpp HTML-render
test_render.h  
test_data.cpp Data service
test_data.h  
test_table_data.cpp Data service
test_table_data.h  

Same sample as above, but with Mini's implementation of service mapping and rendering. This implementation uses a .mini configuration file that replaces the need for a service-mapping function and render classes. To build a application like this sample: link your program with libzzmini.lib, declare all your classes as ZZ_API and define ZZ_DLL_INTERFACE. The macro ZZ_API and the define ZZ_DLL_INTERFACE exports all your classes from your DLL wich is needed for the Mini dynamic C++ classloader to function. For ODBC support define _ODBC.

Source
Comment
Test.html HTML-template
testdll.dll.mini Mini webapplication configurationfile
test_data.cpp Data service
test_data.h  
test_table_data.cpp Data service
test_table_data.h  


Java sample
A simple Mini-webapplication that fetches data from a table using SQL and renders a HTML table with the result.
In this sample we manually implement: the service mapping class and the render class.

Source
Comment
Test.html HTML-template
testjava.java Main program
TestRender.java HTML-render
TestData.java Data service
TestTableData.java Data service

Same sample as above, but with Mini's implementation of service mapping and rendering. This implementation uses a .mini configuration file that replaces the need for a service-mapping method and render classes.

Source
Comment
Test.html HTML-template
test.java Main program
test.class.mini Mini webapplication configurationfile
TestData.java Data service
TestTableData.java Data service