posts - 48, comments - 13, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

2010年1月14日

spket - http://www.spket.com/update

subclipse - http://subclipse.tigris.org/update

posted @ 2010-12-02 09:39 董锐 阅读(280) | 评论 (0)编辑 收藏

Tomcat启动时classloader加载顺序
  Tomcat的class加载的优先顺序一览  
  1.最先是$JAVA_HOME/jre/lib/ext/下的jar文件。  
  2.环境变量CLASSPATH中的jar和class文件。  
  3.$CATALINA_HOME/common/classes下的class文件。  
  4.$CATALINA_HOME/commons/endorsed下的jar文件。  
  5.$CATALINA_HOME/commons/i18n下的jar文件。  
  6.$CATALINA_HOME/common/lib   下的jar文件。  
  (JDBC驱动之类的jar文件可以放在这里,这样就可以避免在server.xml配置好数据源却出现找不到JDBC   Driver的情况。)  
  7.$CATALINA_HOME/server/classes下的class文件。  
  8.$CATALINA_HOME/server/lib/下的jar文件。  
  9.$CATALINA_BASE/shared/classes   下的class文件。  
  10.$CATALINA_BASE/shared/lib下的jar文件。  
  11.各自具体的webapp   /WEB-INF/classes下的class文件。  
  12.各自具体的webapp   /WEB-INF/lib下的jar文件。

posted @ 2010-11-03 11:31 董锐 阅读(1002) | 评论 (0)编辑 收藏

What this means is that leadership involves setting direction, communicating that vision passionately to those they work with, and helping the people they lead understand and commit to that vision. Managers, on the other hand, are responsible for ensuring that the vision is implemented efficiently and successfully.

posted @ 2010-08-23 16:29 董锐 阅读(438) | 评论 (0)编辑 收藏

I know how to send by jquery post method $.post("test.php", { name: "John", time: "2pm" } );

but what if my form field name is array

<input type=text name="n1[]" id="n1[]" value='12345">   <input type=text name="n1[]" id="n1[]" value="14454">  

how to send these 2 field value send to url by jquery post method?

 

You can pass in an array as a value in the object:

{name: 'John', 'nl[]': ['12345', '14454']}  

(This is documented at ajax but also works for post.)

 

var fields = $(":input").serializeArray();      $.post("test.php",fields);

from:http://stackoverflow.com/questions/1656267/how-to-send-multi-field-value-by-jquery-post

posted @ 2010-07-14 11:46 董锐 阅读(729) | 评论 (0)编辑 收藏

string.replace(new RegExp(oldString,"gm"),newString))

posted @ 2010-07-14 11:20 董锐 阅读(198) | 评论 (0)编辑 收藏

在网上看到解决方案是把注册表里(因为是windows操作系统)\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 下的NLS_lang 的NA值修改为SIMPLIFIED CHINESE_CHINA.ZHS16GBK;
 但是我在操作的时候,只把Oracle目录下所有能找到的NLS_Lang值修改了,偏偏没有修改Oracle目录所对应的NLS_Lang值,导致一直测试不通过,始终报错,最后终于发现原来Oracle目录本身对应的NLS_lang值没有修改,修改过后,测试通过,成功!

posted @ 2010-01-14 14:45 董锐 阅读(13476) | 评论 (2)编辑 收藏