This is documentation for an earlier version of webMathematica.
View current User Guide (Version 3.3)

Documentation5. Applications


5.8 Alternative Server Technologies

There are various different server technologies that can be used in conjunction with webMathematica. One basic strategy is to use URLs that refer to computations for a webMathematica server, a technique that should work for any server technology. This is particularly easy for img tags.

This is an img tag that refers to a computation carried out in webMathematica; it could be embedded in the result from any server technology.

<img src="http://myserver:8080/webMathematica/MSP/test?arg1=val1&arg2=val2"/>

Tighter cooperation between a specific server technology and webMathematica is often possible. Remember that webMathematica is based on servlets so any question about interoperation of a server technology and webMathematica is really a question of interoperation of the server technology and Java Servlets and JavaServer Pages. Some specific examples of integration follow.

5.8.1 JavaServer Pages

JavaServer Pages (JSP) technology is an extension of Java Servlet technology. It is the Java equivalent of MSP technology allowing Java code to be embedded in HTML pages. Since webMathematica has a JSP implementation, it is very strongly integrated with JSPs.

5.8.2 PHP

PHP is a server-side, cross-platform, HTML-embedded scripting language, There is a PHP extension that allows interaction of PHP and servlets, which is available at This link contains a README file, which is a good place to start to integrate PHP and webMathematica.