Previous Topic

Next Topic

Book Contents

Book Index

MathFlow SDK Servlet (Java)

Prerequisites for Running the Program

There is only one required .jar file to include on the classpath of your servlet container:

  • MathFlow.jar (all MathFlow SDK classes)

Creating and Using the Servlet

You can find the servlet in the following location:

<path-to-mathflow-sdk>/java/samples/servlets/MathFlowSDKServlet.java

To illustrate how servlets can use the MathFlow SDK, the sample servlet uses MathML to generate an image. Once you have generated the image, you can save it to a file and display. Specifically, the sample servlet does the following:

  • Creates an instance of the EquationComposer component using a license key.
  • Sets various options for generating the image.
  • Generates the image and writes it out as a file.
  • If there are no errors, it displays the image.
  • If there are errors, it displays an error message.

IMPORTANT NOTES

  • A valid MathFlow SDK license for an Equation Composer must be supplied by using a license key or FlexNet license file with the SetLicense method.
  • You can set options for generating the image by calling instance methods on the EquationComposer object.

Previous Topic

Next Topic

Book Contents

Book Index


[Design Science Home]
Copyright © 1996-2016 Design Science, Inc. All rights reserved.