|
Quick Start > Step 2: JOT Servlet
Step 2: JOT Servlet
The second step is to write a subclass of
JotHttpServlet. The following JOT Servlet supports
HTTP POST and GET methods:
package com.jotobjects.demo.quickstart;
import com.jotobjects.servlet.*;
public class QuickStart extends JotHttpServlet
implements JotQueryServlet, JotPostServlet
{}
That's it, a complete working JOT Servlet! The deployment descriptor
associates a JOT Template (step 1) and JotResponseBean (step 3) with
this JOT Servlet (see
Deploying JOT Servlets).
There is also a generic JOT Servlet that can be used
instead of writing a new one
(see JotServlet).
In fact, any Java Servlet or JSP page can generate dynamic content
(see JOT Views).
|