public abstract class Model2Servlet extends GetPostServlet
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_OUTPUT_JSP |
DEFAULT_CONTENT_TYPE
Constructor and Description |
---|
Model2Servlet() |
Model2Servlet(String contentType) |
Model2Servlet(String contentType,
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 String |
getOutputJSP() |
doGet, doPost
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public static final String PARAM_OUTPUT_JSP
public Model2Servlet()
public Model2Servlet(String contentType)
public Model2Servlet(String contentType, String outputJSP)
protected abstract void generateBeans(HttpServletRequest request, HttpServletResponse response) throws Exception
request
- response
- Exception
- all thrown exceptions are packed in a ServletException
.protected String getOutputJSP()
protected void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGetPost
in class GetPostServlet
ServletException
IOException