摘要: images文件夹放在webroot下request.getRequestDispatcher("/资源url").forward(request,response);//转发response.sendRedirect("/web应用名/资源url"); 阅读全文
posted @ 2014-03-27 22:13 -琥珀川- 阅读(161) 评论(0) 推荐(0)
摘要: pagecount=(rowcount-1)/pageSize +1; 阅读全文
posted @ 2014-03-27 21:45 -琥珀川- 阅读(118) 评论(0) 推荐(0)
摘要: //1、call+包名+存储过程名(传入、传出值用?) String str="{call SMSBUSINESS.deleteZhZMember(?,?,?)}"; //2、建立连接 Connection conn=null; conn=DriverManager.getConnection(); //3、使用java.sql.*类 CallableStatement cs=conn.prepareCall(str); //4、传入in值 cs.setInt(1,id); cs.setInt(2,-2); //5、设置out值 cs.registerOutParamete 阅读全文
posted @ 2014-03-27 20:42 -琥珀川- 阅读(199) 评论(0) 推荐(0)