ITeye博客

love life,love java!

guodongbingtuan · 共 43 篇文章

事务(脏读,不可重复读,虚读)

脏读 dirty reads:当事务读取还未被提交的数据时,就会发生这种事件。举例来说:Transaction 1 修改了一行数据,然后 Transaction 2 在 Transaction 1 还未提交修改操作之前读取了被修改的行。如果 Transaction 1 回滚了修改操作,那么 Transaction 2 读取的数据就可以看作是从未存在过的。 不可重复的读 non-repeatable reads:当事务两次读取同一行数据,但每次得到的数据都不一样时,就会发生这种事件。举例来说:Transaction 1 读取一行数据,然后 Transaction 2 修改或删除该行并提交修改操…

2010-01-30 17:00 · Datebase · 评论(0)

FCK学习笔记(二)

1.针对不同的FCK写单独的配置文件,配置FCK ² 创建FCK时,配置如下: function switchtxt()//我采用的textarea替换的方法 { var oFCKeditor = new FCKeditor('answ'); oFCKeditor.BasePath = "${pageContext.request.contextPath}/fckeditor/"; oFCKeditor.Config["CustomConfigurationsPath"]="${pageContext.request.contextPath}/admin/js/MyFCKConfig.js"…

2009-09-14 14:35 · JS&AJAX · 评论(0)

JS取下拉框的Text和value值

页面jsp: <select name="qType" id="qType" onchange="getValAndTxt()"> <option value="null">---请选择---</option> <c:choose> <c:when test="${!empty qtypelist}"> <c:forEach items="${qtypelist}" var="qtype"> <c:choose> <c:when test="${qtype.qtype_id == qtypeId}"> <option value="${qtype.qtype_id}" selected="s…

2009-09-12 11:57 · JS&AJAX · 评论(0)

bing 我也来用用"必应"

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-07-04 09:58 · life · 评论(0)

tomcat5_5 jndi各种配置方式分析总结(mysql)

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-07-04 09:42 · java · 评论(0)

myeclipse下项目不编译问题

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-07-02 10:42 · java · 评论(0)

Anders Hejlsberg

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-07-01 11:42 · collection · 评论(0)

解决Eclipse启动错误 jvm terminated. exit code 1

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-06-30 11:00 · java · 评论(0)

Tomcat6.0+mysql+jdk1.6.0 jndi连接池的配置步骤

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-05-12 18:08 · java · 评论(0)

FCKeditor应用笔记

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2009-05-12 18:07 · java · 评论(0)

7 words

男人和女人的区别 1. By nature 本性上 Men are polygamous by nature. There's no doubt and there's nothing to debate about it。 从本性上讲,男人是花心的。毫无疑问,这没什么可争辩的。 Women are monogamous by nature. The same holds true with this fact. When a woman loves--it's now and forever. More or less they tend to love now and forever. …

2009-03-28 13:10 · words/jok · 评论(0)

6 words

1. Two wrongs do not make a right. 别人错了,不等于你对了。 2. Tomorrow never comes. 我生待明日,万事成蹉跎。 3. Too much familiarity breeds contempt. 过分熟悉会使人互不服气。 4. Two of a trade seldom agree. 同行是冤家。 5. To know everything is to know nothing. 什么都知道,一如什么都不知道。 6. The world is a ladder for some to go up and others to go do…

2009-03-09 11:58 · words/jok · 评论(0)

jxl学习笔记2

导出Excel表 1.jsp页面传出要导出信息ID <textarea name="code" class="xhtml:nogutter:nocontrols" rows="12" cols="50"><body> <form action="outexcel" method="post"> <input type="checkbox" name="id" value="1" checked="checked"/>11111111 <br> <input type="checkbox" name="id" value="2"/>22222222 <br> <input type="subm…

2009-03-09 11:14 · java · 评论(0)

4 joks

The strongest man A guy rushes into a bar and shouts, "Who's the strongest in here?" The toughest guy looks at him and says "I am the strongest around here!" The other guy politely asks "Can you help me push my car to the gas station?" We're Not Responsible! There was a primary school teacher who t…

2009-03-06 10:57 · words/jok · 评论(0)

3 words

1. do us a favor 「帮个忙」这句话也是超级常用的,日常生活中要请人帮忙的情况很多,也许是请人帮你拿一下东西,也许是请人帮你带便当,都可以用上这句Do me a favor.。要请人帮忙还有另一种说法,就是May I ask a favor of a you?,不过记得在别人帮完后,别忘了向人家说声谢谢!Could you do me a favor?或是Could you give me a hand?这算是比较正式而礼貌的讲法。有时候要请别人帮忙不太好意思说时,可以贼一点地说Could you do me a little favor?「能不能帮我一个小忙?」把对方弄上钩再…

2009-03-05 15:12 · words/jok · 评论(0)