ZDNetChina中文社区 » 系统架构 » IBM软件技术 » 怎么将现在我这个JSP转化为Servlet


2007-12-24 00:35 gaoba
怎么将现在我这个JSP转化为Servlet

<%@   page   language="java"   pageEncoding="UTF-8"   contentType="text/html;   charset=UTF-8"
  import="com.jspsmart.upload.*,java.util.*,java.text.SimpleDateFormat,java.io.File"%>
    %>
    <%   
    SmartUpload   su   =   new   SmartUpload();
    su.initialize(pageContext);
    su.upload();
      su.save("/upload");
      for   (int   i=0;i <su.getFiles().getCount();i++)
{
        com.jspsmart.upload.File   file   =   su.getFiles().getFile(i);
            if   (file.isMissing())   continue;
    }
    response.sendRedirect("Chart.jsp");
    %>   
怎么将这个JSP上传文件转成servlet

页: [1]


Powered by Discuz!  Archiver   © 2001-2006 Comsenz Inc.