%-- Document : index Created on : Jul 22, 2008, 9:52:32 AM Author : jbf --%> <%@page contentType="text/html" pageEncoding="UTF-8"%>
This is an example showing how Autoplot can be used to produce graphics for clients via HTTP. Request parameters are sent to the "SimpleServlet" indicating the data set URI or vap file to plot, and parameters such as plot size. Autoplot then produces a static image or PDF on the server side, and sends the result.
Typically this would be used to serve data from files on the server side to clients. Note that URIs need not be local files, but remote files will be cached locally on the server, potentially causing problems. Please understand the limitations of the server before deploying it for production use, and contact us (autoplot@groups.google.com) if you have questions.
The "ScriptServlet" allows Python scripts to be sent and interpreted to produce graphics or to access Autoplot internals. Obviously this introduces security concerns, and access is limited by the "allowhosts" file found by default in /tmp/autoplotservlet. Also, scripts are logged in this location as well.
simple.jsp: web form for sending requests to the SimpleServlet.
script.jsp: web form for sending scripts to the ScriptServlet.
script2.jsp: web form for running a server-side script, right now set up to do URI templates.