how to select a table by parameters in jasper report using java in eclipse? : i have a button . when i hit it . it create a table in database with name+billno+date. and inserts all details like product name and etc into database.

now i want to when the new table is created , after that jasper report fetch that newly created table and show it in table of jasper report.

for that i created a parameter.

    Hashmap param = new Hashmap();
    param.put("TABLE" , name+bill+date);
    
after that i created a table in jasper report and tried to do this query.

    select * from $P{TABLE} 

but it throws an error