11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

50 webMathematica User GuideThe print output was:ColumnForm[MSPGetPrintOutput[]]print output displayed hereThese are some evaluations that will cause messages to begenerated by Mathematica. There is also a Mathematica printstatement.The contents are very simple; there are two evaluations that cause messages to be generated.These are followed by uses of MSPGetMessages and MSPGetPrintOutput, both of which areformatted by ColumnForm. The messages that were generated are displayed in the resultingpage.Returning General Content: Content.jspIf you installed webMathematica as described above, you should be able to connect to this JSPvia http://localhost:8080/webMathematica/Examples/Content.jsp. (You may have some otherURL for accessing your server.)All of the examples up to this point return HTML to the browser, but the web can work withgeneral content involving many different formats. MSPReturn is provided to allow an MSP toreturn arbitrary content. Here is an example that demonstrates how different formats can bereturned. The source is in webMathematica/Examples/Content.jsp and webMathematica/WEB-INF/Applications/ExampleUtilities/Content.m.First, here is the source.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!