|
MDi JLib 1.7.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.microdeveloper.servlets.io.JspHtmlWriter
public class JspHtmlWriter
This servlet will take the output of a JSP page and save it to a local file. This enables applications that collect dynamic output and buffer or cache them for future requests.
The servlet requires that several parameters are established in the servlet configuration which are:
Here are a few examples for success page, usage page, and a failure page.
The servlet responds to two parameters, "url" and "name".
| Constructor Summary | |
|---|---|
JspHtmlWriter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the servlet. |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handles the HTTP GET method. |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Handles the HTTP POST method. |
String |
getServletInfo()
Returns a short description of the servlet. |
void |
init(ServletConfig config)
Initializes the servlet. |
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
Processes requests for both HTTP GET and POST methods. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JspHtmlWriter()
| Method Detail |
|---|
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletServletExceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServlet
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
GET and POST methods.
request - servlet requestresponse - servlet response
ServletException
IOException
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
GET method.
doGet in class HttpServletrequest - servlet requestresponse - servlet response
ServletException
IOException
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
POST method.
doPost in class HttpServletrequest - servlet requestresponse - servlet response
ServletException
IOExceptionpublic String getServletInfo()
getServletInfo in interface ServletgetServletInfo in class GenericServlet
|
MDi JLib 1.7.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||