- 博客(73)
- 资源 (4)
- 收藏
- 关注
转载 在Eclipse中将java Project转换成Dynamic Web Project
文章转载自:http://blog.163.com/duanpeng3@126/blog/static/885437352009102241511837/
2014-11-12 10:17:53
695
转载 JS对select动态添加options操作[IE&FireFox兼容]
文章装载自:http://www.cnblogs.com/ghostljj/archive/2007/04/30/733417.html 动态删除select中的所有options: document.getElementById("ddlResourceType").options.length=0; 动态删除select中的某一
2013-11-21 12:40:12
1780
转载 Java静态变量的初始化(static块的本质)
本文转载自: http://blog.youkuaiyun.com/darxin/article/details/5293427在网上看到了下面的一段代码:[java] view plaincopypublic class Test { static { _i = 20; }
2013-11-20 15:05:14
14335
转载 ${pageContext.request.contextPath}的作用
转载地址: http://wenku.baidu.com/view/51326241336c1eb91a375d41.html代码” ${pageContext.request.contextPath}”的作用是取出部署的应用程序名,这样不管如何部署,所用路径都是正确的。一.问题 JSP中究竟采用绝对路径还是采用相对路径随着所采用技术的越来越复杂,这个问题也变得越来越难以解决
2013-08-08 09:54:14
997
转载 使用Eclipse远程调试Tomcat
文章转载自: http://www.oschina.net/question/12_8196有些时候,调试不得不用外网,比如说做支付宝的支付接口,服务器后台通 知就不得不用外网的ip。无奈,只能扔到服务器远程调试了。网上讲关于远程调试tomcat的倒是蛮多,基本都是将改啥catalina.sh,startup.sh的,操作还是复杂点。下面这篇就只针对于 l
2013-07-16 17:57:43
789
转载 jsp:directive.page
等效于 但是有一点不同,如果你把所有类包的引入放在一个JSP中,在其他jsp中通include引入那个jsp。这时引入类就必须采用 这样的写法。这种写法只能在同一个jsp页面中使用,不能跨页调用
2013-04-07 14:29:03
745
转载 敏捷软件开发三条简单准则
三条简单原则:1. 在项目的初期,不可能收集到所有的需求。2.不管你收集到什么需求,最终它们肯定都会发生变化。3.总会有任务超时,超支。 接受第一条准则,意味着即使没有万事俱备,你仍大胆的开始了旅途。你意识到要自己去发现需求。如果等着一切都收集完毕,那永远也开始不了。接受第二条准则,意味着你不再惧怕或者规避变化。你知道变化无法避免,只能承认它。必要时你会调整计划再继续下去。
2013-03-13 00:35:51
731
转载 (转帖)解决戴尔15R切换大小写光标延时的问题
解决戴尔15R切换大小写光标延时的问题进入注册表编辑器:在运行里输入‘regedit’,如果没有运行,在搜索 里输入也行,只要找到注册表编辑器就行,然后打开,按照上述操作。1.在360软件管理中的高级设置中的开机加速中把QUICKSET这个软件取消。 2.修改下面的注册表键值为 30d40 (16进制): HKEY_CURRENT_USER\Co
2012-08-11 23:46:41
1774
转载 示例类和外观类的几点区别:
1. 示例类通常是一个能够独立运行的应用程序,而外观类通常不是。2. 示例类通常会包含示例数据,而外观类不会。3. 外观类通常是可配置的,而示例类不是。4. 外观类旨在提供复用,而示例类不是。5. 外观类应用于实际环境中,而示例类不是。
2012-07-14 11:39:22
906
原创 女友何时有?单身几时休?
玛雅预言,世界止于2012. 曾和女孩戏称自己要去当和尚, 却没有女孩为我伤心, 虽在预料之中,却也在情理之外, 我的处境是何其多么的惨呢! 直惨过小强。冤过窦娥。 我的惨,已经超越物种,超越三界了。 众位MM们,不对,亲,你还单身吗? 请原谅我略带邪恶的窃喜, 请原谅我发自肺腑的幸灾乐祸, 因为那也是我卑微的真情流露
2012-02-10 13:27:39
1394
转载 navicat 快捷键
1.ctrl+q 打开查询窗口2.ctrl+/ 注释sql语句3.ctrl+shift +/ 解除注释4.ctrl+r 运行查询窗口的sql语句5.ctrl+shift+r 只运行选中的sql语句6.F6 打开一个mysql命令行窗口7.ctrl+l 删除一
2011-12-03 14:14:26
31238
转载 HibernateTemplate使用小结
使用HibernateTemplate的方法进行CRUD操作,其中查询操作通常可分为两种,一种为固定条件查询,另一种为动态多条件查询(如查询界面的实现),固定条件查询可以很方便地通过createQuery,find()等方法实现,但是我在动态条件查询的实现过程中,hibernate3.0可以实现英文的条件查询,而中文条件则会出现乱码。现将具体的过程描述如下: 1.固定条件查询
2011-11-29 10:42:22
785
转载 HibernateTemplate的常规用法
HibernateTemplate提供非常多的常用方法来完成基本的操作,比如通常的增加、删除、修改、查询等操作,Spring 2.0更增加对命名SQL查询的支持,也增加对分页的支持。大部分情况下,使用Hibernate的常规用法,就可完成大多数DAO对象的CRUD操作。下面是HibernateTemplate的常用方法简介: void delete(Object entity):
2011-11-29 10:37:58
434
转载 Spring总结-----@Component,@Service,@Controller,@Repository
在一个稍大的项目中,通常会有上百个组件,如果这些组件采用xml的bean定义来配置,显然会增加配置文件的体积,查找以及维护起来也不太方便。Spring2.5为我们引入了组件自动扫描机制,他可以在类路径底下寻找标注了@Component,@Service,@Controller,@Repository注解的类,并把这些类纳入进spring容器中管理。它的作用和在xml文件中使用bean节点配置组件时
2011-11-29 10:06:38
407
原创 Communication skills
Communication skills--careful listening, clear writing, close reading, plain speaking, and accurate description -- will be invaluable. 交流能力——听得认真、写得明白、看得仔细、说得清楚、叙述准确——将具有无可
2011-11-16 22:03:10
473
转载 Oracle UNION ALL/UNION/INTERSECT/MINUS
OperatorDescriptionUNION ALLReturns all the rows retrieved by the queries, including duplicate rows.UNIONReturns all non-duplicate rows retrieved by the queries.INT
2011-11-15 23:12:27
662
转载 Oracle/PLSQL: NVL Function
In Oracle/PLSQL, the NVL function lets you substitute a value when a null value is encountered.The syntax for the NVL function is:NVL( string1, replace_with )string1 is the string to test fo
2011-11-06 20:37:31
614
转载 oracle 分析函数之 over 用法
本文转载自: http://blog.youkuaiyun.com/mantisxf/article/details/1695441仅供个人学习提高使用。 Oracle 语法之 OVER (PARTITION BY ..)select * from test数据:A B C 1 1 1 1 2 2 1 3 3 2 2 5 3 4 6 ---将B列
2011-10-31 21:00:59
650
原创 用sqlplus 连接远程数据库, 执行.sql文件
1. Windows->Start-> cmd;2. Input : sqlplus username/password@hostname:port/SID;3. @file_name, 比如 将d:/test.sql 导入远程数据库,执行: @d:/test.sql;4. 如果test.sql中没有commit; 记得执行commit;5. 完成。
2011-10-31 10:56:21
5845
转载 Oracle Union
用于合并结果集,去掉重复记录table1 : code name c1 n1 c2 n2 table2 : code name c1 n1 c3 n3 select code , name from table1 union select
2011-10-27 21:03:56
495
原创 The execute sequence when using the WHERE and GROUP BY Clauses Together
The WHERE clause first filters the rows returned,then the remaining rows are grouped into blocks by the GROUP BY clause.
2011-10-25 20:50:31
461
转载 Windows下删除.svn文件夹的最简易方法
建立一个文本文件,取名为kill-svn-folders.reg(扩展名由txt改为reg),内容如下:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders"[HKEY_LOCAL_MACHINE
2011-10-25 17:14:18
485
原创 Oracle: Select constant as a column
Prepare data: CREATE TABLE fruit ( "ID" NUMBER(4,0), "NAME" VARCHAR2(50 BYTE), "PRICE" NUMBER(4,2) ) Insert into fruit (ID,NAME,PRICE) values (1,'Apple',1);Insert into f
2011-10-23 17:22:01
2141
原创 Oracle: Concatenate string
Prepare data: CREATE TABLE student ( "ID" VARCHAR2(4 BYTE) primary key, "FIRST_NAME" VARCHAR2(10 BYTE), "LAST_NAME" VARCHAR2(10 BYTE) ); Use the command 'describe student' to see
2011-10-23 14:41:08
1339
原创 oracle fuzzy inquery, using ignore case.
Here is an example: Prepare data:create table fruit( id number(4) primary key, name varchar2(150)); Insert into fruit(ID,NAME) values (1,'Apple');Insert into fruit (ID,NAME)
2011-10-23 14:11:11
758
转载 数据库范化 database normalization
Database normalization is useful for several reasons: a. It helps to build a structure that is logical and easy to maintain. b. Normalized databases are the industry standard.
2011-10-22 17:52:24
4227
转载 Understanding basic database terminology
A database consists of tables and columns.Database Design TerminologyLogical/RelationalLogical/Object-OrientedPhysical ImplementationEntityClassTableAttri
2011-10-22 17:37:49
558
原创 Oracle backup one table to another table.
In Oracle, if you want to backup a table named table1 to another table named table1_backup,you can use the following SQL:create table table1_backup as select * from table1;
2011-10-22 16:43:13
1006
原创 Oracle: Use NVL() to convert a null value into another value.
When you retrieve data from oracle database, when some records has null value in some columns,if you want to display the records more meaningful,with the columns whose value is
2011-10-22 16:25:24
619
转载 Understanding NUll values of Oracle
A NULL value in oracle database table is not representing a blank string, it means that the value for the column is unknown, when you select a column that contains a null value, you will see nothing i
2011-10-22 14:49:40
442
转载 ORACLE中SQL运算符的优先级
SQL运算符优先级:优先级1 算术运算符2连接符3比较符4IS[NOT]NULL, LIKE, [NOT]IN5[NOT] BETWEEN6NOT7
2011-10-22 14:29:37
2214
原创 Oracle: check the structure of a table
Oracle: check the structure of a table named test_table, just using the follwoing command: describe test_table; the output has 3 columns: the first column displays the column name of tabl
2011-10-22 12:29:27
1096
原创 修改Oracle SQL Developer的时间格式
打开Oracle SQL Developer, 选择 Tools --> Preferences --> Database --> NLS-->Date Format, 把默认的格式:DD-MON-RR 改为你想要的格式: 比如:显示完整的日期 将 ‘DD
2011-10-17 14:47:22
929
转载 Cannot insert explicit value for identity column in table ‘table’ when IDENTITY_INSERT is set to OFF
reprinted from http://sqlserverplanet.com/sql-server/cannot-insert-explicit-value-for-identity-column-in-table-table-when-identity_insert-i
2011-10-14 13:40:23
13454
转载 JQuery Callback and Functions
A callback is a function that is passed as an argument to another function and is executed after its parent function has completed. The
2011-10-12 15:58:09
648
原创 Using JQuery to manipulate HTML label
Two ways manipulating HTML label using JQuery: 1. $("Label_Name"); 2. $('#Label_Id_Name');
2011-10-12 15:47:31
438
转载 IT全能王
全能王:上得了厅堂,下得了厨房,写得了代码,查得出异常,杀得了木马, 翻得了围墙,开得起汽车,住得起洋房,斗得过小三,打得过流氓。。。
2011-10-09 15:04:53
380
转载 Synchronize access to shared mutable data
The synchronized keyword ensures that only a single thread will execute a statement or block at a time.Many programmers think of synchron
2011-10-09 15:04:04
611
转载 About Java Exception
The java programing language provides three kinds of throwables: checked exception, run-time exceptions and errors.Checked exceptions gene
2011-10-09 13:19:50
400
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人