46
Note that
MSPToExpression
applies a security check to the input variable. You should be aware that input
variables are a major source of danger and always use the secure conversion functions
MSPBlock
and
MSPToEx
pression
. In particular, you should never use ToExpression on an input variable. The
Security
section
documents the security system in more detail.
It is also possible to return the result using MathML; this is described in greater detail in the section on
MathML
. A
further discussion on formatting mathematics and graphics is given in the section on
Displaying Mathematics and
Graphics
.
An interesting point about the first msp:evaluate tag is that it contains two Mathematica commands. To use two
commands in the same tag they can be separated with a semi colon ; . In addition, the last command is also fol
lowed by a semi colon, this makes sure that no output from the tag is inserted into the output page. More informa
tion on adding code into web Mathematica pages is given in
Tips and Tricks: Coding in Pages
.
3.6 Live 3D Plotting: Plot3DLive.jsp
If you installed webMathematica as described
above
, you should be able to connect to this JSP via
http://localhost:8080/webMathematica/Examples/Plot3DLive.jsp. (You may have some other URL for accessing
your server.) It allows the user to enter a function to be plotted by the LiveGraphics3D applet. The source for
this page is in webMathematica/Examples/Plot3DLive.jsp.
.
<
New Page 1
Comcast Web Hosting