public abstract class Model2Servlet extends GetPostServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_OUTPUT_JSP |
DEFAULT_CONTENT_TYPE
Constructor and Description |
---|
Model2Servlet() |
Model2Servlet(java.lang.String contentType) |
Model2Servlet(java.lang.String contentType,
java.lang.String outputJSP) |
Modifier and Type | Method and Description |
---|---|
protected void |
doGetPost(HttpServletRequest request,
HttpServletResponse response) |
protected abstract void |
generateBeans(HttpServletRequest request,
HttpServletResponse response)
Implementations of this method are called before this servlet delegates to the output JSP.
|
protected java.lang.String |
getOutputJSP() |
doGet, doPost
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public static final java.lang.String PARAM_OUTPUT_JSP
public Model2Servlet()
public Model2Servlet(java.lang.String contentType)
public Model2Servlet(java.lang.String contentType, java.lang.String outputJSP)
protected abstract void generateBeans(HttpServletRequest request, HttpServletResponse response) throws java.lang.Exception
request
- response
- java.lang.Exception
- all thrown exceptions are packed in a ServletException
.protected java.lang.String getOutputJSP()
protected void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
doGetPost
in class GetPostServlet
ServletException
java.io.IOException