Alternative Server Technologies
There are various different server technologies that can be used in conjunction with web
Mathematica. One basic strategy is to use URLs that refer to computations for a web
Mathematica server, a technique that should work for any server technology. This is particularly easy for
img tags.
Here is an
img tag that refers to a computation carried out in web
Mathematica. 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 web
Mathematica is often possible. Remember that web
Mathematica is based on servlets so any question about interoperation of a server technology and web
Mathematica is really a question of interoperation of the server technology and Java Servlets and JavaServer Pages. Some specific examples of integration follow.
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 web
Mathematica has a JSP implementation, it is very strongly integrated with JSPs.
PHP
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.fubar/sapi/servlet. This link contains a README file, which is a good place to start to integrate PHP and web
Mathematica.