Corda.com
JSP Tag Library (PopChart)
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.
Quick Start
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.
- Download and Install Corda Server.
- Start Corda Builder.
- Open the
examples/apfiles/bar.pcxmlfile.This example appearance file is installed with PopChart. To open it, select File > Open, then choose
../examples/apfiles/bar.pcxml. - Generate sample JSP Tag Library code for this appearance file.
- Save the code as
popchart.jspto your web application server. - Install the Java version of the Corda Embedder
- Install the Corda tag library.
- Start Corda Server.
- Browse to the
popchart.jspfile in your web browser. - You should see a bar graph in your browser.
Click here to download.
Select Start Menu > Corda 6.0 > Corda Builder (Click Cancel when the Wizard opens).
Select the Sample Code tab from the bottom left corner. Then select JSP (Tag Library) from the Code for pull-down menu.
To save, click on Save Code to File button.
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.
Optional-this step is only required on older application servers. Refer to the Corda documentation for instructions.
Select Start Menu > Corda 6.0 > Corda Server.
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.
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:
