## Lesson 3: Running a report set with parameters

You have been asked to run OrderListbyDate_Parameter.cls from your JSP application and this report set requires parameters to run. You don't want JReport Enterprise Server to display the default JSP page to enter the parameter value so you need to write a JSP page to request the parameter values, and then run the report set with the specified values.

In this lesson you will also need to use DHtml API to run the report set without using the tag library.

This lesson comes with an HTML file that requests the parameters and a JSP file that runs and displays OrderListbyDate_Parameter.cls in DHTML format in a new web browser window.

1. Copy the runWithParameter.html file in `<install_root>\Demo\source` to `<install_root>\public_html\jag`.
2. Open runWithParameter.html in your favorite editor and review the code if desired.
3. Copy runWithParameter.jsp in `<install_root>\Demo\source` to `<install_root>\public_html\jag`.
4. Open this file in an editor and review the code if desired.
5. Browse http://localhost:8888/jag/runWithParameter.html.
6. Select the start date and end date and click Run report set. You may see the result generated with the specified parameter values, for example:

### Lesson 3 summary

In this task you have learned how to use JSP and DHTML API to run a report set with parameter collected through the user interface. Often this information is known by your application so there is no need to prompt the user for the information, it can be provided directly from the application calling the report set.