/* Create and add JDBC connection */
JdbcConnection conn = getJdbcConnection();
report.getDataConnections().add(conn);
/* create report params */
ReportParameterTextBox minParam = new ReportParameterTextBox();
minParam.setName("Minimum Price");
minParam.setPrompt("Enter the minimum price range");
minParam.setValue(0);
minParam.setRequired(true);
ReportParameterTextBox maxParam = new ReportParameterTextBox();
maxParam.setName("Maximum Price");
maxParam.setPrompt("Enter the maximum price range");
maxParam.setValue(999999999);
maxParam.setRequired(true);
/* add params to report */
report.getReportParameters().add(minParam);
report.getReportParameters().add(maxParam);