Corda.com
Java Server Pages (PopChart)
These instructions will help you deploy a simple bar graph in a JSP application on your Java / J2EE Application Server. These instructions are somewhat abbreviated. If you would like a more detailed tutorial, view the JSP Quick Start in 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 code for this appearance file.
- Save the code as
popchart.jspto your web application server. - Install the Java version of the Corda Embedder
- 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 (Java Embedder) 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.
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 applications, including code for connecting to a database:
