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 115setThe set tag is a convenient way to store a result that can be used in other locations. An exampleis JSTLset.jsp, found in the webMathematica web application in the directory Examples/ExtendedLanguage (the full path in Tomcat would be webapps/webMathematica/Examples/ExtendedLanguage). Some of the contents are shown below.The value is ${id}.In this example, if the variable id is initialized with the result of a Mathematica computation.This is then used in a number of other instances of the expression language.choose/when/otherwiseThe choose, when, and otherwise tags are another way to conditionally add blocks of text. Anexample is JSTLchoose.jsp, found in the webMathematica web application in the directoryExamples/ExtendedLanguage (the full path in Tomcat would be webapps/webMathematica/Examples/ExtendedLanguage). Some of the contents are shown below.Sin was chosenCos was chosenTan was chosenSomething else was chosen

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

Saved successfully!

Ooh no, something went wrong!