| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2760 人关注过本帖
标题: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
快速回复:jspSmartUpload.jar到底放在哪??
数据加载中...
 
   



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

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