simkin.examples.servlet
Class SimkinServlet

java.lang.Object
  |
  +--HttpServlet
        |
        +--simkin.examples.servlet.SimkinServlet

public class SimkinServlet
extends HttpServlet

This example shows how Simkin can be used within a Java servlet The servlet executes Simkin script contained within a POST request, and returns the output of the script to the calling browser

See Also:
Serialized Form

Constructor Summary
SimkinServlet()
           
 
Method Summary
 void doPost(HttpServletRequest req, HttpServletResponse res)
          Handle a post request - loads the Simkin script from the "code" variable, executes it, and returns the output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimkinServlet

public SimkinServlet()
Method Detail

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   java.io.IOException
Handle a post request - loads the Simkin script from the "code" variable, executes it, and returns the output

ServletException
java.io.IOException