webMathematica >

Using Java APIs

Server APIs

<msp:evaluate>
$ServletRequest@getRemoteAddr[]
</msp:evaluate>
A more elaborate example is found in Request.jsp, the source for which is available in webMathematica/Examples. If you installed webMathematica as described above, you should be able to connect to it via http://localhost:8080/webMathematica/Examples/Request.jsp. (You may have some other URL for accessing your server.) This example extracts names and values from the HTTP request.

Other Java APIs