Passing Parameters to a JSP file or Servlet

You can pass request parameters in URL query string format to JSP pages and servlets from the IDE. Specifying input data in this fashion provides a useful aid in testing for expected JSP or servlet output.

To specify parameters for a JSP page or servlet:

  1. In the Filesystems window right-click the JSP file or servlet file and choose Tools and choose Set Request Parameters from the contextual menu.
  2. In the Set HTTP Request Parameters (Query String) dialog box, type the parameters in the  format.
  3. Click OK.

The IDE saves the request parameter in the Request Parameters property in the property sheet for the JSP page or servlet and automatically passes the parameters to that JSP or servlet the next you select the file and choose Execute from the contextual menu.

tip  The HTTP Monitor tool enables you to edit and resend request parameters.
See also
About Running Web Modules

Legal Notices