com.xmlserv.util
Class FileUploadServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.xmlserv.util.FileUploadServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FileUploadServlet
extends javax.servlet.http.HttpServlet

Utilizing the FileUpload utility class, this servlet can be used as the action for the HTML form containing an upload element.

Version:
$Id: FileUploadServlet.java,v 1.4 2002/04/19 18:14:54 muecke Exp $
Author:
Wolfram Saringer
See Also:
Serialized Form

Constructor Summary
FileUploadServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handle GET requests.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handle POST requests by redirecting to doGet().
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUploadServlet

public FileUploadServlet()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
Handle POST requests by redirecting to doGet().
Overrides:
doPost in class javax.servlet.http.HttpServlet
See Also:
doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
Handle GET requests.
Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The request object.
res - The response object.
Throws:
javax.servlet.ServletException - A processing error occurred.
java.io.IOException - Any error reading from / writing to the network.