摘要: request.getRequestDispatcher().forward()在应用中跳转时不会中断程序的继续进行,其返回类型为void,其后的程序仍然将执行下去。例如: try { su.initialize(config, request, response); //限制上传附件的大小为10M. su.setTotalMaxFileSize(10 * 1024 * 1024); su.upload(); } catch (ServletException e) { e.printStackTrace(); } catch (SmartUploadException... 阅读全文
posted @ 2011-08-29 10:40 leanman 阅读(3466) 评论(1) 推荐(0)