Example Code

Welcome

This project contains numerous examples of how to use Convirgance (Web Services) framework to build your application. Convirgance is extremely flexible and can adapt to whatever your favorite front-end technology is.

Web Services

Example Description
/customers/database Demonstrates a simple yet sophisticated web service which lists and filters customer data from a database table
/customers/classpath Shows that data can be pulled from a project file in the classpath with Filter transformations applied
/customers/filesystem Data retrieved from a file in the filesystem. System property database.root must be set for the service to find the data.
/servlet/database Same database query as /customers/database but running as a regular servlet using base Convirgance library

Filtered Web Services

Example Description
/customers/database?zipcode=48128Demonstrates a simple yet sophisticated web service which lists and filters customer data from a database table
/customers/classpath?discountCode=LShows that data can be pulled from a project file in the classpath with Filter transformations applied
/customers/filesystem?state=FLData retrieved from a file in the filesystem. System property database.root must be set for the service to find the data.
/servlet/database?state=CA&discountCode=LBase Convirgance library showing multiple filters applied

JSP Demos

Example Description
json.jsp Example showing how a JSON structure can be used to drive page rendering
database.jsp Embeds a SQL Query directly into the JSP page and then renders the results
service.jsp Calls a Convirgance Web Service and renders the results to the page
</>htmx Demos showing how to utilize htmx technology with Convirgance (Web Services)