posted @ 2013-11-11 15:50 TimeFight 阅读(545) 评论(0) 推荐(0)
摘要:
原因是导错包了 应该导入DWR3.0.jar 阅读全文
摘要:
//js方法:序列化表单 function serializeForm(form){var obj = {};$.each(form.serializeArray(),function(index){if(obj[this['name']]){obj[this['name']] = obj[this['name']] + ','+this['value'];} else {obj[this['name']] =this['value'];}});return obj;} 阅读全文
posted @ 2013-11-02 17:19 TimeFight 阅读(302) 评论(0) 推荐(0)
摘要:
当使用spring mvc 框架,再去使用kindeditor会出现上传错误。纠起原因是upload.parseRequest(request)取值的老是NULL.因为此时取得的request是DefaultMultipartHttpServletRequest 类型。原来处理上传图片的upload_json.jsp文件无法使用了,于是对kindeditor中处理上传图片的upload_json.jsp文件进行重写。一下是重写后的upload_json.jsp文件。 extMap = new HashMap();extMap.put(“image”, “gif,jpg,jpeg,png,b.. 阅读全文
posted @ 2013-11-01 10:14 TimeFight 阅读(514) 评论(0) 推荐(0)
摘要:
原 KindEditor 官方指定调用参数如下,在IE浏览器6.0-7.0都是没有问题的KindEditor.ready(function(K) {var editor = K.create('textarea[name="content"]', {cssPath : '样式路径',uploadJson : '动态上传处理程序文件',fileManagerJson : '已上传文件管理程序文件',allowFileManager : true,afterCreate : function() {var self 阅读全文
posted @ 2013-10-31 15:01 TimeFight 阅读(433) 评论(0) 推荐(0)
摘要:
C3P0是一个开放源代码的JDBC连接池,它在lib目录中与Hibernate一起发布,包括了实现jdbc3和jdbc2扩展规范说明的Connection 和Statement 池的DataSources 对象。 c3p0-config> 3 30 1000 false Test false 100 null false 60 3 60 15 100 3 root password select id from test where id=1 300 ... 阅读全文
posted @ 2013-09-15 17:34 TimeFight 阅读(406) 评论(0) 推荐(0)
摘要:
1.使用pinyin4j将汉字转成拼音,附件为pinyin4j的jar包Java代码importnet.sourceforge.pinyin4j.PinyinHelper;importnet.sourceforge.pinyin4j.format.HanyuPinyinCaseType;importnet.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;importnet.sourceforge.pinyin4j.format.HanyuPinyinToneType;importnet.sourceforge.pinyin4j.forma 阅读全文
posted @ 2013-08-31 11:53 TimeFight 阅读(2694) 评论(0) 推荐(0)
摘要:
在spring-mvc.xml中加入 阅读全文
posted @ 2013-08-21 10:53 TimeFight 阅读(751) 评论(0) 推荐(0)
摘要:
@RequestMapping(value="ShowPage") public String ShowPage(HttpServletRequest request) { System.out.println(request.getSession().getServletContext().getRealPath("/WEB-INF/view")); System.out.println("控制器被调用了!!!!!"); return "ShowPage"; } 阅读全文
posted @ 2013-08-19 16:16 TimeFight 阅读(287) 评论(0) 推荐(0)
摘要:
Calendar cal = Calendar.getInstance(); cal.set(Calendar.HOUR, 11);//不知道这里为什么不是24 奇怪 cal.set(Calendar.SECOND, 59); cal.set(Calendar.MINUTE, 59); cal.set(Calendar.MILLISECOND, 59); Long End= cal.getTimeInMillis(); Long Now=System.currentTimeMillis(); System.out.println((End-System.currentTimeMi... 阅读全文
posted @ 2013-08-16 17:17 TimeFight 阅读(253) 评论(0) 推荐(0)
浙公网安备 33010602011771号