Specifies the Request and Response global objects of the JSP page.
void object.SetServletInfo( javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response )
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.
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);
Applies To: Chart Object