|
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 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).
Note there is also a generic JOT Servlet that can be used
instead of writing a new one (see
JotMappedServlet). In fact, any Java Servlet or JSP page can
be used (see JOT Views).
|