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.
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.
PHP is a server-side, cross-platform, HTML-embedded scripting language, http://www.php.net. There is a PHP extension that allows interaction of PHP and servlets, which is available at http://cvs.php.net/cvs.php/php4/sapi/servlet. This link contains a README file, which is a good place to start to integrate PHP and webMathematica.