- 博客(16)
- 收藏
- 关注
原创 jquery.pager.js的使用
PageClick = function(pageclickednumber) { $("#pager").pager({ pagenumber: pageclickednumber, pagecount: parseInt(总页数), buttonClickCallback: PageClick }); goto_page(pageclickednumber,0);}
2009-10-30 18:10:00 2898
转载 PHP API for Cloud Application Services(支持云应用程序服务的PHP API)
今天在infoQ上看了篇文章,感觉它的评论很有意思,转载过来。 支持云应用程序服务的PHP API 作者 Abel Avram 译者 赵劼 发布于 2009年10月
2009-10-08 10:42:00 767
原创 org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the sessio
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: 按网上写的getHibernateTemplate().merge方法无法解决
2009-09-07 19:58:00 619 2
原创 jquery ajax 与java奇怪的问题
jquery ajax$.ajax({ type: "post", url: "/×××.do?action=××", data:"id="+id, dataType:"html", success: function(msg){
2009-09-07 19:35:00 431
转载 深入理解abstract class和interface
[http://www.javaresearch.org/forum/thread.jsp?column=16&thread=28218]深入理解abstract class和interface 发表时间: 2005-05-23 11:49
2009-08-13 12:07:00 312
原创 php 5.3新引入的garbage collection
以下代码来源www.php.net // Start caching variablesgc_enable ();$value = "Hello world";echo $value. "";$value = "Bye world";echo $value. "";
2009-08-04 10:35:00 378
原创 java判断request.getParameter("Id")为合法数字,而不包含其他除过数字的字符
java如何判断一个字符串是纯数字可以将字符串的数字全部替换掉,然后判断替换后的与”“判断 !id.replaceAll("//d", "").equals("")
2009-07-10 15:07:00 1334
原创 org.springframework.orm.hibernate.HibernateObjectRetrievalFailureException 解决
jsp将数据库查询显示到页面上,然后通过其他方法删除一条数据,后面通过jsp页面操作这条数据,就会出现HibernateObjectRetrievalFailureException 异常,产生脏数据,我们对hibernate中不经常变化的数据都配置和二级缓存,并且策略是只读。但是在这些数据在数据库中被删除时(通过另外的进程) 技术解决方法,将applicationContext中的
2009-07-10 11:28:00 3017
原创 jsp重复提交
添加重复提交 response.sendRedirect("/admin.do?action=managerList"); return null; 删除 return new ActionForward("/adminArea.do?action=provinceList", true);一切用return mapping.findFo
2009-06-25 14:21:00 342
原创 jquery datepick 中文显示
$(#dateinput).datepick({minDate: 0,showOn: both, buttonImageOnly: true, buttonImage: /zskx_admin/images/calendar.gif,clearText:清除,closeText:关闭,prevText:前一月,nextText:后一月,currentText: ,m
2009-06-20 10:28:00 1201
原创 hibernate(1)
The no-argument constructor is required to instantiate an object of this class through reflection. We will omit the DTD declaration in future examples to shorten the code. It is of course not opt
2009-06-17 09:30:00 271
原创 prototype(1)
$(id) 取id,相当于document.getElementById() $(url).enable(); $(userInput).value += "[img= " + $F(url_text) + "][/img]"; $F()取文本的值$(editor).toggle();$(url_text).focus();$(url).dis
2009-06-12 17:56:00 290
原创 jquery validate 与java
remote:"/group.do?action=verifyCode"remote:"验证码错误" public ActionForward verifyCode(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse r
2009-04-09 17:08:00 929
原创 试用php+oracle+apache
用了一天的时间,试验了下用php,apache连oracleoracle 用的是OracleXEUniv,可以从oralce官网上免费下载http://www.oracle.com/technology/global/cn/tech/php/index.html,配置时不需要改什么,按下一步的流程下来就OK了。 配置环境我只去掉了php.ini中的extension=php_oci8.
2008-08-19 12:52:00 1312
原创 弹出的窗口关闭后如何刷新主画面
项目的客户需要支持两种浏览器IE和 FireFox, 所以把两个方法的都贴出来(showModalDialog和window.open的参数就不细写出来了)IE showModalDialog弹出窗口:window.showModalDialog(url,window,);IE关闭弹出窗口后刷新:window.dialogArguments.location.replace(win
2007-03-14 12:38:00 1315
原创 PHP中截取字符
在网上曾经看到一个截取字符的函数,但是是错的,现在将修改后的贴出来.(注释是日语)function substr($str,$start,$length){ //バイト数を指定 $strlen=$start+$length; //1バイトの保存 $tmpstr = ; //初期化定義 $i = 0; $j = 0; //バイトの計算 w
2007-03-14 10:00:00 621
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人