jspsmartupload problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ckrreddy_konda
Posted On:   Saturday, May 18, 2002 06:53 AM

Hi, I downloade jspsmartupload and i tried to run the jsp example they gave ...... I am getting the following error when try to upload file ............ Error: 500 Location: /jspsmartupload/jsp/sample1.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/tomcat/work/localhost_8080%2Fjspsmartupload/_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_4.java:99: Method upload() not found in class com.jspsmart.upload.SmartUpload. mySmartUpload.upload(); ^ 1 error Here is the jsp code : <%@ page language="java" import="com.j   More>>

Hi,



I downloade jspsmartupload and i tried to run the jsp example they gave ......


I am getting the following error when try to upload file ............




Error: 500


Location: /jspsmartupload/jsp/sample1.jsp
Internal Servlet Error:



org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/tomcat/work/localhost_8080%2Fjspsmartupload/_0002fjsp_0002fsample_00031_0002ejspsample1_jsp_4.java:99: Method upload() not found in class

com.jspsmart.upload.SmartUpload.
mySmartUpload.upload();
^
1 error




Here is the jsp code :



<%@ page language="java" import="com.jspsmart.upload.*"%>






jspSmartUpload : Sample 1





<%



// Variables


int count=0;



// Initialization


mySmartUpload.initialize(pageContext);



mySmartUpload.setTotalMaxFileSize(100000);



// Upload


mySmartUpload.upload();



try {



// Save the files with their original names in the virtual path "/upload"


// if it doesn't exist try to save in the physical path "/upload"


count = mySmartUpload.save("/upload");



// Save the files with their original names in the virtual path "/upload"


// count = mySmartUpload.save("/upload", mySmartUpload.SAVE_VIRTUAL);



// Display the number of files uploaded


out.println(count + " file(s) uploaded.");



} catch (Exception e) {


out.println(e.toString());


}



%>







I didn't change any code ......Just i am trying to run the example given by jspsmart.com


Please help me ............



Thanks.

   <<Less
About | Sitemap | Contact