尚学堂Struts2_03绪论.ppt

项目案例——订货系统(一) 需求说明 项目案例——订货系统(二) 推荐实现步骤 数据库设计 本系统使用Struts2+JDBC方式实现 项目案例——在线投票系统 待续… public void copy1(File f1,File f2){ InputStream is=null; OutputStream os=null; try { is=new FileInputStream(f1); os=new FileOutputStream(f2); byte[]buff=new byte[BUFF_SIZE]; int length=0; while((length=is.read(buff))0){ os.write(buff,0,length); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ try { if(is!=null) is.close(); if(os!=null) os.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public void copy2(File f1,

文档评论(0)

1亿VIP精品文档

相关文档