ChartDirector 7.0 (Java Edition)

getchart.jsp


"getchart.jsp" is a utility JSP that comes with ChartDirector. Its retrieves an image from a session variable, and returns the image to the browser.

"getchart.jsp" is typically used in the URL of an <IMG> tag, so that the <IMG> tag can reference an image in a session variable.

The name of the session variable is specify as a URL query parameter "img". For example, "getchart.jsp?img=chart1" will retrieve an image from the session variable "chart1".

"getchart.jsp" is usually used together with BaseChart.makeSession. The latter creates a chart image in a session variable, and returns an URL query string that can be used directly by "getchart.jsp".