弄了一个上午了,还是没点用!!!!!
网上说放哪我都放了,shared/lib下,WEB-INF/lib(项目)下,common/lib下,可是都还是没用啊,真郁闷,
我的servlet代码如下:
package myServlet;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.jspsmart.upload.SmartUpload;//报错...
public class Company_Servlet extends javax.servlet.http.HttpServlet implements
javax.servlet.Servlet{
/**
*
*/
private static final long serialVersionUID = -201651203664101197L;
/**
*
*/
public Company_Servlet(){
super();
}
public void doPost(HttpServletRequest request,HttpServletResponse response) throws
ServletException,IOException{
response.setContentType("text/html;charset=gb2312");
com.jspsmart.upload.SmartUpload mySmartUpload = new com.jspsmart.upload.SmartUpload();//报错,,,,,,
String method=request.getParameter("method");
String mycompanyName=request.getParameter("companyName");
String mycompanyType=request.getParameter("companyType");
String mymainProduct=request.getParameter("mainProduct");
String mycreateTime=request.getParameter("createTime");
String myprovince=request.getParameter("province");
String mycity=request.getParameter("city");
System.out.print(request.getParameter("companyName"));
System.out.print(mymainProduct);
}
public void doGet(HttpServletRequest request,HttpServletResponse response) throws
ServletException,IOException{
doPost(request,response);
}
}
是我的代码错了,还是我的jspSmartUpload.jar放错了位置,
哪位好人能告诉我啊?