Two Laptop Bag*
The moose likes JSP and the fly likes file upload with jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "file upload with jsp" Watch "file upload with jsp" New topic
Author

file upload with jsp

barnali chakrabarty
Greenhorn

Joined: Dec 10, 2001
Posts: 7
Hi:
I use jsp+tomcat+mysql.I have to upload file from the user's machine.I have downloaded jspsmartupload. But,I cannot make it work.Has anybody used it? Can anybody help me with the probable configuration for jspsmartupload in tomcat?
Thanks in advance.
Mouse Slider
Greenhorn

Joined: Nov 02, 2001
Posts: 4
Hi,
I used jspSmartUpload successfully.
1. Please make sure that ENCTYPE="multipart/form-data" in the form.
2. Please make sure that jspSmartUpload.jar (?) is in the right location in tomcat.
3. Please make sure that you did reference the examples which jspSmart provides.
Otherwise, if you don't mind, post your codes, please.
barnali chakrabarty
Greenhorn

Joined: Dec 10, 2001
Posts: 7
Thanks for the answer but I couldn't get your point of copying the jar file in tomcat.where should it be copied in Tomcat and where to find this specific 'jar' file? In fact I am facing a error when I am trying to run the sample example.the whole jspsmartupload folder is copied in the application folder and the class files of the Web-inf is copied in tomcat's web-inf folder.the error showed the the 'sample1.jsp' is as follows :
org.apache.jasper.JasperException: Unable to compile class for JSP/root/tomcat/tomcat3.2.3/work/localhost_8080%2Fjspsmartupload/_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_0.java:15: Package com.jspsmart.upload not found in import.
import com.jspsmart.upload.*;

Can you please help?
Thanks again.
^
Biju Nair
Ranch Hand

Joined: Dec 15, 2001
Posts: 31
Try placing the jspSmartUpload's .jar file in tomcat's 'lib' directory. or put it in WEB-INF\classes folder. Both should work.


--: Biju Nair :--
candy lau
Greenhorn

Joined: Jan 05, 2003
Posts: 1
hello. I also face the same problem error, likely the previous post message.
The error describe as below:
Package com.jspsmart.upload not found in import.
import com.jspsmart.upload.*;
According to your previous reply, try placing the jspSmartUpload's .jar file in tomcat's 'lib' directory. or put it in WEB-INF\classes folder.
however, I can not find *.jar files in jspSmartUpload folder. where to find it?
Thanks for your help...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file upload with jsp
 
Similar Threads
Problem with JSP and iplanet Web Server 4.0 SP2
Help in JSP SmartUpload
Download / Upload Files
mutipart/form-data
Upload File