Corda.com

 

JSP Tag Library (PopChart)

< BACK TO QUICK START INDEX

These instructions will help you deploy a simple bar graph using Corda's JSP Tag Library on your Java / J2EE Application Server. These instructions are somewhat abbreviated. If you would like a more detailed tutorial, view the PopChart Getting Started manual.

These instructions assume you are installing Corda Server on the same machine as your Java / J2EE Application Server. If you are serving JSPs from a different machine, these instructions may not work, or you may have to make adjustments.

  1. Download and Install Corda Server.
  2. Click here to download.

  3. Start Corda Builder.
  4. Select Start Menu > Corda 6.0 > Corda Builder (Click Cancel when the Wizard opens).

  5. Open the examples/apfiles/bar.pcxml file.

    This example appearance file is installed with PopChart. To open it, select File > Open, then choose ../examples/apfiles/bar.pcxml.

  6. Generate sample JSP Tag Library code for this appearance file.
  7. Select the Sample Code tab from the bottom left corner. Then select JSP (Tag Library) from the Code for pull-down menu.

  8. Save the code as popchart.jsp to your web application server.
  9. To save, click on Save Code to File button.

  10. Install the Java version of the Corda Embedder
  11. This is usually accomplished by copying Corda60/dev_tools/embedder/java/CordaEmbedder.jar to your web application's WEB-INF/lib directory and restarting your server. For details, refer to the Corda documentation.

  12. Install the Corda tag library.
  13. Optional-this step is only required on older application servers. Refer to the Corda documentation for instructions.

  14. Start Corda Server.
  15. Select Start Menu > Corda 6.0 > Corda Server.

  16. Browse to the popchart.jsp file in your web browser.
  17. If you saved the file to the root of your web server, you can browse to it by entering http://localhost:8080/popchart.jsp in a browser.

  18. You should see a bar graph in your browser.

Now you can customize your graph and connect to data on the fly by editing the popchart.jsp file. On our website you'll find a number of example JSP Tag Library applications, including code for connecting to a database: