标题:jspSmartUpload.jar到底放在哪??
取消只看楼主
HB515560244
Rank: 1
等 级:新手上路
帖 子:48
专家分:0
注 册:2007-10-9
 问题点数:0 回复次数:0 
jspSmartUpload.jar到底放在哪??

弄了一个上午了,还是没点用!!!!!

网上说放哪我都放了,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放错了位置,
哪位好人能告诉我啊?








搜索更多相关主题的帖子: jar import servlet javax lib 
2007-11-09 10:46



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-184736-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.800597 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved