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.

292 webMathematica User GuideEach variable is then validated to ensure it only contains letters or digits as well as the dollar($) and backquote (`) characters. This prevents an attack that sends a variable starting with anexclamation (!) character. This would be potentially dangerous because it might cause Mathematicato launch an operating system shell.Each value is turned into a Mathematica string. For this, any backslash (\) and doublequote (")characters are escaped with additional backslash (\) characters. If the value starts with anexclamation (!), a space is added. Finally, doublequotes (") are added around the result.Server ValueMathematica ValueSin@x+yD " Sin@x+yD "!myBoolean" !myBoolean""\foo\bar " " \" \\ foo \\ bar \" "Assign ParametersAssignments to $ServletRequest, $ServletResponse, $ScriptName, $PathInfo, and$QueryString appropriate for this request are made in the kernel.InitializationThe settings of $Context and $ContextPath are saved, and the lists used to store messagesand print output are initialized.If the configuration parameter KernelAcquireCode has been set for the pool this will be executedat this time.evaluateThe evaluate tag exists to evaluate Mathematica commands inside of a JSP. The body of thetag is evaluated by Mathematica. You can use the full range of MSP functions inside an evaluÖate tag. Each tag uses the kernel that was allocated by the first evaluate tag.If any MSPException is thrown, it will be caught by the processing code, and some suitableerror message will be inserted. Some of these turn into page errors.

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

Saved successfully!

Ooh no, something went wrong!