I have created a html page for submiting form in enctype="multipart/form-data" format
i have downloaded the Jakarta Commons FileUpload, but it only worked fine in the jsp not in the servlet
Once, I convert it to servlet and it returns an error to me
it complains
ldap.java:12: package org.apache.commons.fileupload does not exist
import org.apache.commons.fileupload.*;
package marketCouncil;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.naming.ldap.*;
import javax.naming.directory.*;
import javax.naming.*;
import org.apache.commons.fileupload.DiskFileUpload;
public class ldap extends HttpServlet{
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException{
.....
}}
i stored the commons-fileupload-1.0.jar file in <tomcat_home>/common/lib
does anyone know why? does it just work in jsp and not in servlet?
thanks
ricky