Specifies the Request and Response global objects of the JSP page.

    void object.SetServletInfo( javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response )

#### Arguments

object
  Required. A Chart object.
request
  Required. The HttpServletRequest object of the JSP page where the chart object is located.
response
  Required. The HttpServletResponse object of the JSP page where the chart object is located.

#### Remarks

Swiff Chart Generator requires both the global request object and the global response object of the JSP page where the chart is located. These objects are required prior to any call to the Swiff Chart Generator API.

Warning: If either the request object or the response object is not valid, the chart generation will fail.

#### JSP Sample Code

The following JSP code illustrates use of the SetServletInfo method.

    // Create the chart series
    SwiffChart chart= new SwiffChart( installation_dir );

    // For example, in the case of Tomcat Windows
    chart.SetDocumentRoot("C:\\tomcat\\webapps\\ROOT\\");

    // Specify the request and response objects
    // These are standard global variables of any JSP page
    chart.SetServletInfo(request,response);

#### See Also

SetDocumentRoot Method

Applies To: Chart Object