Default language.

Creating data visualization modules on the mid tier


Use the following procedure to create DVMs.

Important

When writing the module, be sure to generate output that is compliant with Section 508 if your users specify anything other than default in the Accessible Mode field of the User Preference form.

To create a data visualization module

  1. Save your code to a .java file with a name that matches the Class file name.
     Following the example in HelloWorld plug-in scenario which follows this procedure, your resulting file should be HelloWorldPlugin.java.
  2. Compile the code using javac.
     Make sure to reference the GraphPlugin.jar file from the mid tier's /WEB-INF/lib directory and a .jar file that contains the Oracle Java HttpServletResponse class in your -classpath parameter for javac. HttpServletResponse is in j2ee.jar if you use a OracleOne web server; it is in servlet.jar if you use ServletExec. For example:
    javac -classpath / yourDirStructure/j2ee.jar:/ yourDirStructure/GraphPlugin.jar HelloWorldPlugin.java
  3. Add the compiled .class file to a .jar file. For example:
    jar -cvf DataVisHelloWorld.jar HelloWorldPlugin.class
     If you use a package structure, enter this:
    jar -cvf DataVisHellowWorld.jar topLevelDir
     If you use package structures, remember these guidelines:
    • If you chose to use a Java package reference, add this to the sample code, for example, package com.mycompany.plugin.
    • When running javac and jar, your .java or .class file must exist in a directory structure that matches the package declaration, and you should be in the directory immediately above the top of the package structure when running javac and jar.
       When running javac, java, and jar commands, remember that these Java tools look "down" a directory structure. To see files in directories above your current directory, use the ../ reference; you cannot simply use an absolute file path reference.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*