Hi all, I have created a custom data source successfully. I have a parameter in the custom data source, which is a sql statement. In my custom data source, I will execute this sql statement and pass the ResultSet to the Jasper report. After I finished the coding, I found that I don't know how to define the parameter of the Custom Data Source dynamically. Anyone could give me some hits how I can pass a parameter to a Custom Data Source? I would use Jasper Web Service + JSP to run the report. Your help is much appreciated. Thanks. Gary