Quote:Also could you provide an example of what is needed to run the diagram and diagram view not using the applet class on a client machine. I am thinking I just need methods to send and receive the file in the managed bean.
JDiagram is mostly a component for desktop applications, and the DiagramView class is a Java Swing component that lets you edit diagrams interactively in Swing applications. We don't provide any built-in JSP integration at this time, and if you don't want your web page to load an applet, you won't be using the DiagramView class either, but only Diagram and DiagramItem-derived objects. E.g. you can build the diagram model with them from JSP or servlet code, and then generate bitmaps with associated HTML image maps representing the diagram. You can find an example showing how to use JDiagram both as an applet and as a server-side image generator in the Samples/JspSample folder; copy it to a Tomcat apps folder to run it.
If you need to implement user interaction with the diagram in a web page, you will have to load the JDiagram's applet, or possibly use our JavaScript library for HTML5 Canvas on the client side. Another option is to create a Java Web Start desktop application that communicates with your server via web services.
Quote:On the client machine JSP I would need the applet to reference the com.fusion.diagramming class, and then how would I create a diagram, diagram view and load from the managed bean?
You won't be using DiagramView on the server side as it's a Swing UI component. In the JSP code you can populate a Diagram with objects representing your data, and call Diagram.saveToString to get the encoded diagram in format that you can send to the client side applet. DiagramApplet will automatically load that string if you set it as the value of the DiagramData applet parameter. This is shown in the JspSample sample project.
I hope that helps,
Stoyan