11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

webMathematica User Guide 297Mathematica Web FunctionswebMathematica contains a large number of Mathematica commands that can be used insidethe webMathematica tags that provide useful functionality for creating web material with Mathematica.These are useful in various ways such as processing request parameters that are theinput from a web user, formatting results, and using web features such as uploading files andHTTP sessions.Typically, these commands are used inside of an evaluate tag; more information on these tagsis found in the webMathematica tags section. An example, which calculates an integral and usesthe function MSPFormat to format the result into TraditionalForm, is shown below.MSPFormat[ Integrate[ expr, {var, 0, Infinity}], TraditionalForm]The different functions are shown in the following sections.Processing InputHTTP input variables are a key way to control the operation of a dynamic website. These aretypically embedded in your input page with tags. webMathematica provides a numberof functions for working with and processing input. This needs to be done carefully to avoid anysecurity problems. The functions are summarized in the following table.MSPBlockMSPToExpressionMSPValueMSPValueQsecure scoping construct for HTTP inputinterpret input in a secure wayreturn the value of an HTTP input variabletest if an HTTP input variable has a value

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

Saved successfully!

Ooh no, something went wrong!