刘建广

博客园 首页 联系 订阅 管理
  69 随笔 :: 0 文章 :: 0 评论 :: 85664 阅读

11 2012 档案

摘要:// excel 文件上传例子public ActionForward productNeworderExcel(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception{HttpSession session=request.getSession();if(session.getAttribute("managerid")==null){return new ActionForward("/ma 阅读全文
posted @ 2012-11-07 10:44 刘建广 阅读(404) 评论(0) 推荐(0) 编辑

摘要:// java 生成文件public ActionForward createProductPrograma(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) {/** **************************权限判断******************************** */HttpSession session = request.getSession();CheckAuthen checkauthen = new Check 阅读全文
posted @ 2012-11-06 17:38 刘建广 阅读(5252) 评论(0) 推荐(0) 编辑

摘要:// 读取一个.html 文件内容public ActionForward editProductProgramaLabel(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws ParseException, UnsupportedEncodingException {HttpSession session = request.getSession();if(session.getAttribute("managerid" 阅读全文
posted @ 2012-11-06 17:16 刘建广 阅读(1006) 评论(0) 推荐(0) 编辑

摘要:一个Quartz的CronTrigger表达式分为七项子表达式,其中每一项以空格隔开,从左到右分别是:秒,分,时,月的某天,月,星期的某天,年;其中年不是必须的,也就是说任何一个表达式最少需要六项!例:0 0 12 ? * WED 表示每个星期三的12点执行,这里没有“年”这项!字段名(项) 必须 值范围 特殊字符 秒 是 0-59 , - * / 分 是 0-59 , - * / 时 是 0-23 , - * / 月的某天 是 1-31 , - * ? / L W 月 是 1-12 or JAN-DEC , - * / 星期的某天 是 1-7 or SUN-SAT , - * ? / L # 阅读全文
posted @ 2012-11-06 17:01 刘建广 阅读(462) 评论(0) 推荐(0) 编辑

摘要:try{URL newURL = new URL("http://localhost:8080/auto/productNeworder.do?method=createProductPrograma");HttpURLConnection conn = (HttpURLConnection) newURL.openConnection();conn.connect();BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));in.close();}catch( 阅读全文
posted @ 2012-11-06 16:51 刘建广 阅读(321) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示