Contents

Introduction
Samples Installation
Testing Swiff Chart Generator


Introduction

To run the Swiff Chart Generator JSP samples on your Web Application Server you need to have the SwiffChart.jar archive installed on your Web Application Server and accessible for the JSP sample pages. In some cases the SwiffChart.jar archive must be installed in the WEB-INF/lib folder of the JSP page servlet folder. You must also edit the JSP code samples to specify the Swiff Chart Generator installation directory as well as the Web Application Server document root.


Samples Installation

  1. Publish the JSP sample pages on your Web Application Server. To do so copy the folders located in
    <install_dir>/samples/JSP/
    Where <install_dir> is Swiff Chart Generator installation directory. These folders contain the JSP sample pages.
  2. Edit each published JSP sample page and modify the 2 variables installation_dir and web_root.

    • - The installation_dir variable must contain the exact absolute pathname of the Swiff Chart Generator installation directory on your Web Application Server.

      For example, for JSP Windows
      String installation_dir= "C:\\Program Files\\GlobFX\\Swiff Chart Generator 4";
      For example, for JSP Unix
      String installation_dir= "/usr/local/SwiffChart";

    • - The web_root variable must contain the exact absolute pathname of your web server root directory.

      For example, for JSP running with Tomcat on Windows
      String web_root= "C:\\tomcat\\webapps\\ROOT";

  3. Publish the SwiffChart.jar archive in your Web Application Server. Make sure that SwiffChart.jar is accessible for the JSP code samples. The SwiffChart.jar file is located in
    <install_dir>/samples/JSP/lib/
    Where <install_dir> is Swiff Chart Generator installation directory.
  4. Restart your Web Application Server.

Testing Swiff Chart Generator

To test the Swiff Chart Generator installation, open your web browser (you must have the Flash plug-in installed), type the following URL in and browse in the available directories to view the samples:

http://your_server_name/your_directory/

where your_server_name is the machine name of your Web Application Server (possibly 127.0.0.1:8080 - the localhost machine) and your_directory is the servlet folder where your JSP samples have been published.