Table of Contents
| Warning | ||
|---|---|---|
| ||
When using Hash Variable that uses URL parameter or user-inputted value in the SQL query, ensure that these hash variable(s) are escaped in the query! Make use of hash variable escape keywords, see Hash Variable - Escaping the Resultant Hash Variable. Example of VULNERABLE query:
To fix this, use ?sql hash variable escape:
|
Introduction
| English |
|---|
| JDBC Datalist Database Binder gives you the flexibility of designing a datalist by using your own custom SQL queries and database connection. |
JDBC Datalist Properties
Configure JDBC Datalist Binder
Figure 1: JDBC Datalist Properties
| Name | Description | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Datasource | Target database to execute SQL statements on. Choices:-
|
| ||||||||||||||||||
| Custom JDBC Driver | Custom JDBC Driver. This field is required when Custom Datasource is selected in Datasource above. Example: comdriver name. Example values:
Only applicable to "Custom Datasource" option. | |||||||||||||||||||
Custom JDBC URL | Custom JDBC Database connection URL. This field is required when Custom Datasource is selected in Datasource above.Example: jdbc:mysql://localhost /jwdb?characterEncoding=UTF8&useSSL=falseOnly applicable to "Custom Datasource" option. | |||||||||||||||||||
Custom JDBC Username | Database username. Example: root Only applicable to "Custom Datasource" option Custom JDBC Username. This field is required when Custom Datasource is selected in Datasource above. | |||||||||||||||||||
Custom JDBC Password | Specified database user's password. Only applicable to "Custom Datasource" option Custom JDBC Password. This field is required when Custom Datasource is selected in Datasource above.
| |||||||||||||||||||
SQL SELECT Query | SQL Select query to populate the datalist.
| |||||||||||||||||||
Primary Key | Define the primary key column. By default, it should be "id". | |||||||||||||||||||
| Optimize query for paging | When checked, the binder only fetches selected page's items rather than the returning the whole data set for improved loading speed. Note: Only applicable to MYSQL and MSSQL target databaseto optimize the performance for large dataset paging. Only works for MySQL and Microsoft SQL Server 2012 onwards. |
Related JDBC Binders & Useful Links
Download Demo
...
App
View file
