摘要:// 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
阅读全文
11 2012 档案
摘要:// java 生成文件public ActionForward createProductPrograma(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) {/** **************************权限判断******************************** */HttpSession session = request.getSession();CheckAuthen checkauthen = new Check
阅读全文
摘要:// 读取一个.html 文件内容public ActionForward editProductProgramaLabel(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws ParseException, UnsupportedEncodingException {HttpSession session = request.getSession();if(session.getAttribute("managerid"
阅读全文
摘要:一个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 #
阅读全文
摘要: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(
阅读全文