webMathematica > webMathematica Tags >

set

set
set a Mathematica variable with the value of a page expression
  • The set tag is necessary to interact between Mathematica and page expressions. It sets a variable in Mathematica from a value of a page variable. Page variables can be used with other tag libraries and the expression language features of webMathematica pages. More information on this can be found in the section on Extended Page Language.
  • The set tag requires the following attributes.
nameattribute that specifies the name of the page variable to hold the result
valueattribute that specifies the value to set
In the following example, the Mathematica variable var is set by the Java variable num.