I am trying to create JR report which is taking start_date and end_date as parameters.
The query:
SE
Your code is wrong.
You should pass parameters as below:
Map map = new HashMap();
map.put("frm_date", frm_dte);
map.put("to_date", to_dte);
You don't need to add P${}
to the parameter's name.
There are a lot of samples in JasperReports distribution package.
You can look at this sample for more details.