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!

Problem with org.apache.commons.fileupload

843838Jun 30 2007 — edited Jun 30 2007
Hi,

I have downloaded apache.commons.fileupload jar file and commons io jar file. Iam using netbeans. I have placed the jar files in
j2sdk1.4.2_12\jre\lib\ext and in the project properties->Build->Packaging (in netbeans) i have mapped the jar files.

But still i get this error

C:\Documents and Settings\Tanuja\.netbeans\5.0\jakarta-tomcat-5.5.9_base\work\Catalina\localhost\pathfinder1\org\apache\jsp\FileCopy_jsp.java:68: cannot resolve symbol
symbol : class ServletFileUpload
location: class org.apache.jsp.FileCopy_jsp
ServletFileUpload upload = new ServletFileUpload(factory);
^

where did i go wrong? I tried with another solution. I placed the jar files in appliactions \build\web\WEB-INF\lib folder and i mapped this in the project properties. but still i get the same error. what could be the problem?

This is how i have imported in my jsp.
<%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
<%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
<%@ page import="org.apache.commons.fileupload.*"%>
Thanks,
Thanuja.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2007
Added on Jun 30 2007
2 comments
602 views