Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problems using Jakarta Commons FileUpload

843841Dec 2 2005 — edited Dec 3 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2005
Added on Dec 2 2005
1 comment
135 views