49
<%@ page language="java" %>
<%@ taglib uri="/webMathematica taglib" prefix="msp" %>
Messages and Print Output
Messages and Print Output
These are some evaluations that will cause messages to be
generated by Mathematica.
Input is 1/0
Random[]/0
Input is Sin[x,1]
Sin[x,1]
Input is Print[ "The result is ", x^2]
Print[ "The result is ", x^2]
The messages were:
ColumnForm[ MSPGetMessages[]]
messages displayed here
The print output was:
ColumnForm[ MSPGetPrintOutput[]]
print output displayed here
The contents are very simple; there are two evaluations that cause messages to be generated. These are followed by
uses of
MSPGetMessages
and
MSPGetPrintOutput
, both of which are formatted by ColumnForm. The
messages that were generated are displayed in the resulting page.
.