Tynamo™-SNAP
v1.0.4

com.qindesign.servlet.example
Class FileUploadServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.qindesign.servlet.example.FileUploadServlet
All Implemented Interfaces:
Servlet, ServletConfig

public class FileUploadServlet
extends HttpServlet

Servlet that can process a file upload from an HTML form.

Version:
1.0.4
Author:
Shawn Silverman
See Also:
Multipart, Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field, RFC 2183

Constructor Summary
FileUploadServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
          Calls the POST handler.
 void doPost(HttpServletRequest req, HttpServletResponse resp)
          Processes a POST request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUploadServlet

public FileUploadServlet()
Method Detail

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Calls the POST handler.

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse resp)
            throws ServletException,
                   IOException
Processes a POST request.

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

Tynamo™-SNAP
v1.0.4

© 2001-2007 Shawn Silverman