• 大小: 13KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-13
  • 语言: Java
  • 标签:

资源简介

java用servlet实现文件上传到数据库 2009-03-19 14:26 index.jsp 文件上传 web.xml upload servletUpload upload /servletUpload index.jsp lib:jspupload.jar java: import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import com.jspsmart.upload.*; public class servletUpload extends HttpServlet { private ServletConfig config; /** * 初始化Servlet */ final public void init(ServletConfig config) throws ServletException { this.config = config; } /** * 处理GET请求 */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(""); out.println(""); out.println("jspSmartUpload : Servlet Sample"); out.println(""); out.println("The method of the HTML form must be POST."); out.println(""); out.println(""); } /** * 响应POST请求 */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(""); out.pr

资源截图

代码片段和文件信息

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      13789  2007-08-22 13:49  jsmartcom_zh_CN.jar

     文件         40  2007-08-22 13:57  readme.txt

----------- ---------  ---------- -----  ----

                13829                    2


评论

共有 条评论

相关资源