??xml version="1.0" encoding="utf-8" standalone="yes"?>一区二区久久久久久,国产天堂在线,欧美激情麻豆 http://www.aygfsteel.com/gdws/archive/2013/09/29/404618.html帅子 帅子 Sun, 29 Sep 2013 07:53:00 GMT http://www.aygfsteel.com/gdws/archive/2013/09/29/404618.html http://www.aygfsteel.com/gdws/comments/404618.html http://www.aygfsteel.com/gdws/archive/2013/09/29/404618.html#Feedback 2 http://www.aygfsteel.com/gdws/comments/commentRss/404618.html http://www.aygfsteel.com/gdws/services/trackbacks/404618.html 阅读全文 ]]> 本月起Oracle不再提供Java 6的安全更?/title> http://www.aygfsteel.com/gdws/archive/2013/02/21/395544.html帅子 帅子 Thu, 21 Feb 2013 09:49:00 GMT http://www.aygfsteel.com/gdws/archive/2013/02/21/395544.html http://www.aygfsteel.com/gdws/comments/395544.html http://www.aygfsteel.com/gdws/archive/2013/02/21/395544.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/395544.html http://www.aygfsteel.com/gdws/services/trackbacks/395544.html 阅读全文 ]]> 性能试l果分析原则【{?/title> http://www.aygfsteel.com/gdws/archive/2012/03/05/371260.html帅子 帅子 Mon, 05 Mar 2012 05:53:00 GMT http://www.aygfsteel.com/gdws/archive/2012/03/05/371260.html http://www.aygfsteel.com/gdws/comments/371260.html http://www.aygfsteel.com/gdws/archive/2012/03/05/371260.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/371260.html http://www.aygfsteel.com/gdws/services/trackbacks/371260.html 阅读全文 ]]> java 7的新Ҏ?/title> http://www.aygfsteel.com/gdws/archive/2011/11/08/363140.html帅子 帅子 Tue, 08 Nov 2011 01:23:00 GMT http://www.aygfsteel.com/gdws/archive/2011/11/08/363140.html http://www.aygfsteel.com/gdws/comments/363140.html http://www.aygfsteel.com/gdws/archive/2011/11/08/363140.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/363140.html http://www.aygfsteel.com/gdws/services/trackbacks/363140.html 阅读全文 ]]> mysql-frontv5.1 key 注册 http://www.aygfsteel.com/gdws/archive/2011/06/22/352811.html帅子 帅子 Wed, 22 Jun 2011 07:48:00 GMT http://www.aygfsteel.com/gdws/archive/2011/06/22/352811.html http://www.aygfsteel.com/gdws/comments/352811.html http://www.aygfsteel.com/gdws/archive/2011/06/22/352811.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/352811.html http://www.aygfsteel.com/gdws/services/trackbacks/352811.html 阅读全文 ]]> jboss start winthin 50seconds http://www.aygfsteel.com/gdws/archive/2011/06/18/352574.html帅子 帅子 Sat, 18 Jun 2011 05:21:00 GMT http://www.aygfsteel.com/gdws/archive/2011/06/18/352574.html http://www.aygfsteel.com/gdws/comments/352574.html http://www.aygfsteel.com/gdws/archive/2011/06/18/352574.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/352574.html http://www.aygfsteel.com/gdws/services/trackbacks/352574.html 阅读全文 ]]> jboss Port 8080 already in use. http://www.aygfsteel.com/gdws/archive/2011/06/18/352573.html帅子 帅子 Sat, 18 Jun 2011 05:15:00 GMT http://www.aygfsteel.com/gdws/archive/2011/06/18/352573.html http://www.aygfsteel.com/gdws/comments/352573.html http://www.aygfsteel.com/gdws/archive/2011/06/18/352573.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/352573.html http://www.aygfsteel.com/gdws/services/trackbacks/352573.html 阅读全文 ]]> jboss Port 8083 already in use. http://www.aygfsteel.com/gdws/archive/2011/06/18/352572.html帅子 帅子 Sat, 18 Jun 2011 05:13:00 GMT http://www.aygfsteel.com/gdws/archive/2011/06/18/352572.html http://www.aygfsteel.com/gdws/comments/352572.html http://www.aygfsteel.com/gdws/archive/2011/06/18/352572.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/352572.html http://www.aygfsteel.com/gdws/services/trackbacks/352572.html 阅读全文 ]]> Autodesk.MapGuide.Studio.2009错误Q?/title> http://www.aygfsteel.com/gdws/archive/2011/04/14/348308.html帅子 帅子 Thu, 14 Apr 2011 10:14:00 GMT http://www.aygfsteel.com/gdws/archive/2011/04/14/348308.html http://www.aygfsteel.com/gdws/comments/348308.html http://www.aygfsteel.com/gdws/archive/2011/04/14/348308.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/348308.html http://www.aygfsteel.com/gdws/services/trackbacks/348308.html 阅读全文 ]]> 图解安装Autodesk Infrastructure Map Server(AIMS) 2012 http://www.aygfsteel.com/gdws/archive/2011/04/13/348207.html帅子 帅子 Wed, 13 Apr 2011 08:46:00 GMT http://www.aygfsteel.com/gdws/archive/2011/04/13/348207.html http://www.aygfsteel.com/gdws/comments/348207.html http://www.aygfsteel.com/gdws/archive/2011/04/13/348207.html#Feedback 3 http://www.aygfsteel.com/gdws/comments/commentRss/348207.html http://www.aygfsteel.com/gdws/services/trackbacks/348207.html 阅读全文 ]]> MapGuide安装常见问题及解军_?/title> http://www.aygfsteel.com/gdws/archive/2011/04/09/347934.html帅子 帅子 Sat, 09 Apr 2011 03:55:00 GMT http://www.aygfsteel.com/gdws/archive/2011/04/09/347934.html http://www.aygfsteel.com/gdws/comments/347934.html http://www.aygfsteel.com/gdws/archive/2011/04/09/347934.html#Feedback 6 http://www.aygfsteel.com/gdws/comments/commentRss/347934.html http://www.aygfsteel.com/gdws/services/trackbacks/347934.html 阅读全文 ]]> MapGuide Open Source 2.1 的安?/title> http://www.aygfsteel.com/gdws/archive/2011/04/09/347933.html帅子 帅子 Sat, 09 Apr 2011 03:51:00 GMT http://www.aygfsteel.com/gdws/archive/2011/04/09/347933.html http://www.aygfsteel.com/gdws/comments/347933.html http://www.aygfsteel.com/gdws/archive/2011/04/09/347933.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/347933.html http://www.aygfsteel.com/gdws/services/trackbacks/347933.html 阅读全文 ]]> 查询sqlserver 出现Object has been closed问题Q?/title> http://www.aygfsteel.com/gdws/archive/2011/04/07/347777.html帅子 帅子 Thu, 07 Apr 2011 04:18:00 GMT http://www.aygfsteel.com/gdws/archive/2011/04/07/347777.html http://www.aygfsteel.com/gdws/comments/347777.html http://www.aygfsteel.com/gdws/archive/2011/04/07/347777.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/347777.html http://www.aygfsteel.com/gdws/services/trackbacks/347777.html 阅读全文 ]]> 解决QQ?60软g冲突的办?/title> http://www.aygfsteel.com/gdws/archive/2010/11/04/337185.html帅子 帅子 Wed, 03 Nov 2010 17:18:00 GMT http://www.aygfsteel.com/gdws/archive/2010/11/04/337185.html http://www.aygfsteel.com/gdws/comments/337185.html http://www.aygfsteel.com/gdws/archive/2010/11/04/337185.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/337185.html http://www.aygfsteel.com/gdws/services/trackbacks/337185.html 阅读全文 ]]> JAVA把各U数据结构{换ؓJSON格式 http://www.aygfsteel.com/gdws/archive/2010/09/15/332071.html帅子 帅子 Wed, 15 Sep 2010 07:10:00 GMT http://www.aygfsteel.com/gdws/archive/2010/09/15/332071.html http://www.aygfsteel.com/gdws/comments/332071.html http://www.aygfsteel.com/gdws/archive/2010/09/15/332071.html#Feedback 1 http://www.aygfsteel.com/gdws/comments/commentRss/332071.html http://www.aygfsteel.com/gdws/services/trackbacks/332071.html 阅读全文 ]]> JAVA的XML http://www.aygfsteel.com/gdws/archive/2010/08/18/329181.html帅子 帅子 Wed, 18 Aug 2010 02:15:00 GMT http://www.aygfsteel.com/gdws/archive/2010/08/18/329181.html http://www.aygfsteel.com/gdws/comments/329181.html http://www.aygfsteel.com/gdws/archive/2010/08/18/329181.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/329181.html http://www.aygfsteel.com/gdws/services/trackbacks/329181.html 阅读全文 ]]> super和this http://www.aygfsteel.com/gdws/archive/2010/08/09/328286.html帅子 帅子 Mon, 09 Aug 2010 02:22:00 GMT http://www.aygfsteel.com/gdws/archive/2010/08/09/328286.html http://www.aygfsteel.com/gdws/comments/328286.html http://www.aygfsteel.com/gdws/archive/2010/08/09/328286.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/328286.html http://www.aygfsteel.com/gdws/services/trackbacks/328286.html public class ThisTest {
private int i=0;
//W一个构造器Q有一个int型Ş?/p>
ThisTest(int i){
this.i=i+1;//此时this表示引用成员变量i,而非函数参数?/p>
System.out.println("Int constructor i——this.i: "+i+"—?+this.i);
System.out.println("i-1:"+(i-1)+"this.i+1:"+(this.i+1));
//从两个输出结果充分证明了i和this.i是不一LQ?/p>
}
// W二个构造器Q有一个String型Ş?/p>
ThisTest(String s){
System.out.println("String constructor: "+s);
}
// W三个构造器Q有一个int型Ş参和一个String型Ş?/p>
ThisTest(int i,String s){
this(s);//this调用W二个构造器
//this(i);
/*此处不能用,因ؓ其他MҎ都不能调用构造器Q只有构造方法能调用他?/p>
但是必须注意Q就是构造方法调用构造器Q也必须Z其第一行,构造方法也只能?/p>
用一个且仅一ơ构造器Q?/
this.i=i++;//this以引用该cȝ成员变量
System.out.println("Int constructor: "+i+" "+"String constructor: "+s);
}
public ThisTest increment(){
this.i++;
return this;//q回的是当前的对象,该对象属于(ThisTestQ?/p>
}
public static void main(String[] args){
ThisTest tt0=new ThisTest(10);
ThisTest tt1=new ThisTest("ok");
ThisTest tt2=new ThisTest(20,"ok again!");
System.out.println(tt0.increment().increment().increment().i);
//tt0.increment()q回一个在tt0基础上i++的ThisTest对象Q?/p>
//接着又返回在上面q回的对象基上i++的ThisTest对象Q?/p>
}
}
q行l果Q?/p>
Int constructor i——this.i: 10—?1
String constructor: ok
String constructor: ok again!
Int constructor: 21
String constructor: ok again!
14
注意Qthis不能用在staticҎ中!所以甚x人给staticҎ的定义就是:没有this的方法!虽然夸张Q但是却充分说明this不能在staticҎ中用!
//1.superq用在构造函C
class test1 extend test{
public test1()...{
super();//调用父类的构造函?/p>
}
public test1(int x){
super(x);//调用父类的构造函?因ؓ带Ş参所以super 也要带行?/p>
}
}
//2.调用父类中的成员
class test1 extend test{
public test1(){}
public f(){//假如父类里有一个成员叫g();
super.g();//super引用当前对象的直接父cM的成?/p>
}
}
]]>Java中接口的使用[转] http://www.aygfsteel.com/gdws/archive/2010/04/25/319335.html帅子 帅子 Sun, 25 Apr 2010 14:17:00 GMT http://www.aygfsteel.com/gdws/archive/2010/04/25/319335.html http://www.aygfsteel.com/gdws/comments/319335.html http://www.aygfsteel.com/gdws/archive/2010/04/25/319335.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/319335.html http://www.aygfsteel.com/gdws/services/trackbacks/319335.html 阅读全文 ]]> 自定义Java异常【{?/title> http://www.aygfsteel.com/gdws/archive/2010/04/15/318459.html帅子 帅子 Thu, 15 Apr 2010 15:11:00 GMT http://www.aygfsteel.com/gdws/archive/2010/04/15/318459.html http://www.aygfsteel.com/gdws/comments/318459.html http://www.aygfsteel.com/gdws/archive/2010/04/15/318459.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/318459.html http://www.aygfsteel.com/gdws/services/trackbacks/318459.html 阅读全文 ]]> supermap iserver java http://www.aygfsteel.com/gdws/archive/2010/01/19/310071.html帅子 帅子 Tue, 19 Jan 2010 06:15:00 GMT http://www.aygfsteel.com/gdws/archive/2010/01/19/310071.html http://www.aygfsteel.com/gdws/comments/310071.html http://www.aygfsteel.com/gdws/archive/2010/01/19/310071.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/310071.html http://www.aygfsteel.com/gdws/services/trackbacks/310071.html 最q在学习supermap iserver javaQ有在搞的我们一起交交?/p>
]]> proxool--- java.sql.SQLException: 关闭的语? http://www.aygfsteel.com/gdws/archive/2009/11/20/303074.html帅子 帅子 Fri, 20 Nov 2009 09:04:00 GMT http://www.aygfsteel.com/gdws/archive/2009/11/20/303074.html http://www.aygfsteel.com/gdws/comments/303074.html http://www.aygfsteel.com/gdws/archive/2009/11/20/303074.html#Feedback 1 http://www.aygfsteel.com/gdws/comments/commentRss/303074.html http://www.aygfsteel.com/gdws/services/trackbacks/303074.html 阅读全文 ]]> java.lang.UnsupportedClassVersionError: Unsupported major.minor version 49.0的错?[转] http://www.aygfsteel.com/gdws/archive/2009/08/04/289805.html帅子 帅子 Tue, 04 Aug 2009 09:04:00 GMT http://www.aygfsteel.com/gdws/archive/2009/08/04/289805.html http://www.aygfsteel.com/gdws/comments/289805.html http://www.aygfsteel.com/gdws/archive/2009/08/04/289805.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/289805.html http://www.aygfsteel.com/gdws/services/trackbacks/289805.html 阅读全文 ]]> Eclipse 3.5 正式版发?/title> http://www.aygfsteel.com/gdws/archive/2009/07/28/288675.html帅子 帅子 Tue, 28 Jul 2009 01:32:00 GMT http://www.aygfsteel.com/gdws/archive/2009/07/28/288675.html http://www.aygfsteel.com/gdws/comments/288675.html http://www.aygfsteel.com/gdws/archive/2009/07/28/288675.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/288675.html http://www.aygfsteel.com/gdws/services/trackbacks/288675.html 阅读全文 ]]> 用XML配置?个最佛_跉|ȝ[转] http://www.aygfsteel.com/gdws/archive/2009/06/04/280022.html帅子 帅子 Thu, 04 Jun 2009 08:14:00 GMT http://www.aygfsteel.com/gdws/archive/2009/06/04/280022.html http://www.aygfsteel.com/gdws/comments/280022.html http://www.aygfsteel.com/gdws/archive/2009/06/04/280022.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/280022.html http://www.aygfsteel.com/gdws/services/trackbacks/280022.html 阅读全文 ]]> jsp生成验证码[转] http://www.aygfsteel.com/gdws/archive/2009/04/09/264610.html帅子 帅子 Thu, 09 Apr 2009 03:51:00 GMT http://www.aygfsteel.com/gdws/archive/2009/04/09/264610.html http://www.aygfsteel.com/gdws/comments/264610.html http://www.aygfsteel.com/gdws/archive/2009/04/09/264610.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/264610.html http://www.aygfsteel.com/gdws/services/trackbacks/264610.html 阅读全文 ]]> java 初学者徏?/title> http://www.aygfsteel.com/gdws/archive/2009/04/09/264608.html帅子 帅子 Thu, 09 Apr 2009 03:48:00 GMT http://www.aygfsteel.com/gdws/archive/2009/04/09/264608.html http://www.aygfsteel.com/gdws/comments/264608.html http://www.aygfsteel.com/gdws/archive/2009/04/09/264608.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/264608.html http://www.aygfsteel.com/gdws/services/trackbacks/264608.html (1)JAVAE序开发步骤: 源代?->~译?.class-->执行(?class交给JVM) jvm--java虚拟机(解释器) (2) JDK -- java开发工具包(~译器、解释器、类? JSDK -- java标准开发工具包 J2SDK -- java 2.0 标准开发工具包; J2EE -- J2SDK + |络开发类库?br /> J2SE -- java2.0 标准环境 (3) JAVAHOME --- jdk安装目录; ~译器 javahome\bin\javac.exe 解释器 javahome\bin\java.exe cd *.jar (4)~译Q javac *.java 执行: java cdQ不能带.class扩展名) (5)path环境变量 功能Q设|可执行文g的搜索\径?br /> 格式Qset path=%path%;路径 %path% --- 代表已有的path信息 查看Qpath (6)classpath环境变量 功能Q设|可 .class文g 的搜索\径?br /> 格式Qset classpath=%classpath%;路径 (7)java开发工具?br /> eclipse、jbuilder (8)数据cd 原始数据cdQbyte、char、short、int、long、float、double、boolean 引用数据cdQ包括数l、类、接口?br /> (9)q算W?br /> q算W分为:术q算W、赋D符、关p运符、逻辑q算W、条件运符 (10)控制语句 控制语句包括Q判断语句、@环语句、蟩转语句?br /> (11)数组 仅声明:如 int [] array; 声明和创建:如 int [] array=new int[5]; 声明、创建和初始化:如 int [] array={1,2,?n}; (12)对象 理解面向对象的概念,面向对象~程思想的核心是对象 创徏对象Q通过关键字new 对象和类的区别:对象是实体,而类是对象的原型 (13)c?br /> cȝ定义Q用关键字class cd含的内容Q属性、方法(以及构造方法) 构造方法:没有q回cdQ方法名和类名一样?br /> Ҏ的包含的内容Q方法名U、方法返回值的数据cdQ没有返回g用voidQ、参数列表、方法的M (14)装、抽象、ѝ多态?br /> 概念Q隐藏属性、方法或实现的详l信息的处理方式 引入了修饰符分ؓQ权限修饰符、非权限修饰W?br /> 权限修饰W:private -- 只能在本cM讉K public -- 可以在Q何地方访问?br /> 默认 -- 可以在本包中M一个类中访问?br /> protected -- 可以在本包中、外包子cM讉K 非权限修饰符Qstatic 、final、abstract (1)static成员可以通过对象调用Q也可以通过cȝ接调用?br /> (2)staticҎ内部不能调用非静态成员?br /> (3)static 静态块Q用于初始化静态成员?br /> (4)final变量Qg可变; (5)finalҎQ不能被子类重写; (6)finalc,不能被? 抽象(abstract)c:(1)抽象ҎQ没有具体功能的Ҏ (2)抽象c?包含抽象Ҏ的类Q抽象类不能生成对象 (3)没有M抽象Ҏ的类Q也可以声明成抽象类 接口Q定义接口的关键字interfaceQ实现接口的关键字implements (1)接口中的所有方法必Lpubliccd或默认类型?br /> (2)Ҏ仅仅是声明或定义Q而不要求d玊W?br /> (3)一个类实现了接口的部分功能Q该cd该是抽象c?br /> (4)一个类可以实现多个接口 (5)接口可以通过使用关键字extendsl承其他接口 l承Q用关键字extends (1)子类可以l承父类的所有方法和属性?br /> (2)子类永远不会l承父类的构造方法?br /> (3)创徏子类对象Ӟ父类构造方法的调用L先于子类构造方法的调用 多态:主要体现为方法的重蝲和方法的重写 (1)Ҏ重蝲Q方法名UCP参数列表不一P不以q回值类型作为判断条件?br /> (2)Ҏ重写Q子cȝ承父cLQ将Ҏ中的Ҏ体重新定义后使用 (15)异常 概念Q程序运行时发生的错误?br /> 了解异常cd其方法?br /> 处理异常的方法:(1)q用try/catch块和多重catch块处理异常?br /> (2)q用try块、catch块和finally块处理异常?br /> (3)q用关键字throw和throws处理异常 (4)q用java语言创徏自定义异常ƈq行处理异常 (16)包?br /> 创徏和用包Q?1)生成? package 包名 (2)执行包中的运行类: java 包名.cd (3)导入包中的类: import 包名.cd ---- 导入指定c?br /> import 包名.* ---- 导入包中的所有publicc?br /> (4)~译带包的源文g javac -d 路径 xxx.java (路径Q包要保存的目录) javac -d . xxx.java (.Q\径ؓ当前路径) 了解常用包:java.lang包、java.util包、java.io包?br /> ]]> EXT2学习W记 http://www.aygfsteel.com/gdws/archive/2009/02/19/255556.html帅子 帅子 Thu, 19 Feb 2009 08:18:00 GMT http://www.aygfsteel.com/gdws/archive/2009/02/19/255556.html http://www.aygfsteel.com/gdws/comments/255556.html http://www.aygfsteel.com/gdws/archive/2009/02/19/255556.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/255556.html http://www.aygfsteel.com/gdws/services/trackbacks/255556.html
本h最q在研究EXT的东?很是佩服q个开源团队啊!q个东东是今后web发展的主方?呵呵废话不多说了,下面说说最q学习的l验: 1.首先Ext的核心包主要有两?ext-base.js和ext-all.js. 开发主要是以scriptZ,在开发过E中cM与我们熟悉的deaktop开?里面包含了所用到的各U类?例如:grid,panel,button{等. 使用h非常方便,充分的展CZAJAX的优? 2.q能和struts有很好的l合,在xml斚w也是其的突? 3.下面我给个简单例? 关于分页?是一个网上例子的改写.与struts的简单结? 下面是demofy.jsp <%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri=" <%@ taglib uri=" <%@ taglib uri=" <%@ taglib uri="
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html:html> <head> <html:base /> <title>分</title> <link rel="stylesheet" type="text/css" href="../CSS/ext-all.css" />
<meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <script type="text/javascript" src="../JS/ext-base.js"></script> <script type="text/javascript" src="../JS/ext-all.js"></script> </head> <body> <script> Ext.onReady(function(){
var sm = new Ext.grid.CheckboxSelectionModel();
var cm = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), sm, {header:'~号',dataIndex:'id',sortable:true}, {header:'名称',dataIndex:'name',sortable:true}, {header:'性别',dataIndex:'sex',sortable:true,renderer:function(value){ if(value=='male'){ return " <span style='color:red;font-weight:bold;'>U男 </span> "; }else{ return " <span style='color:green;font-weight:bold;'>l女 </span>"; } }}, {header:'描述',dataIndex:'descn',sortable:true} ]); cm.defaultSortable = true; var ds = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({url:'../test.do'}), reader: new Ext.data.JsonReader({ totalProperty: 'totalProperty', root: 'root' }, [ {name: 'id',mapping:'id'}, {name: 'name',mapping:'name'}, {name:'sex',mapping:'sex'}, {name: 'descn',mapping:'descn'} ]), remoteSort:true }); var grid = new Ext.grid.GridPanel({ el: 'grid', title:'Ext Grid Test', width:450, height:410, trackMouseOver:false, loadMask: {msg:'正在加蝲数据Q请E侯…?}, store:ds, cm: cm, sm:sm, bbar: new Ext.PagingToolbar({ pageSize: 5, store: ds, displayInfo: true, displayMsg: '当前昄 {0} - {1}条记?/?{2}条记?, emptyMsg: "No topics to display" }) }); grid.render(); ds.load({params:{start:0, limit:5}}); });
</script> <div id="grid"></div> <br> Hello,Welcome to Here!
</body> </html:html> 下面是action public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { // TODO Auto-generated method stub String start = request.getParameter("start"); String limit = request.getParameter("limit"); int index = Integer.parseInt(start); int pageSize = Integer.parseInt(limit); String json = "{totalProperty:100,root:["; String sex=""; for (int i = index; i < pageSize + index; i++) { if(i%2==0) { sex="male"; } else{ sex="female"; } json += "{id:" + i + ",name:'" + i + "',sex:'"+sex+"',descn:'descn" + i + "'}"; if (i != pageSize + index - 1) { json += ","; } } json += "]}"; try { response.getWriter().write(json); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("获取数据Q ?"+start+"----"+limit); return null; } /// 注意是在做的时候一定要把image包引用进来啊. 好了今天p到这?最q比较忙,q几天我们l分? 如果有朋友想和我一LI的?误pL: QQ?10239526
]]>
在Spring环境下如何存取properties文g中的数?/title> http://www.aygfsteel.com/gdws/archive/2008/12/19/247264.html帅子 帅子 Fri, 19 Dec 2008 01:03:00 GMT http://www.aygfsteel.com/gdws/archive/2008/12/19/247264.html http://www.aygfsteel.com/gdws/comments/247264.html http://www.aygfsteel.com/gdws/archive/2008/12/19/247264.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/247264.html http://www.aygfsteel.com/gdws/services/trackbacks/247264.html 在Spring环境下如何存取properties文g中的数?br />1Q介l?br />为避免在JAVAE序中用HardcodeQ我们经怋用一些properties文g存放一些经常变化的数据Q在runtime环境下通过配置q些数据来达到灵z配|应用程序。在Spring出现以前我们通常使用resource bundle来实现对properties文g的读取,但在Spring环境下问题变得更加简单,我们只需要写非常的代码p实现对properties文g的随机存取?br />2QApplicationContext.xml文g配置 ApplicationContext是BeanFactory的扩展,它提供了BeanFactory的所有功能,ApplicationContext允许你通过完全声明的方式配|和理Spring和Spring理的资源,本文我提供以下实例: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="configproperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="location" value="file:config.properties"/> </bean> <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="properties" ref="configproperties"/> </bean> <bean id="tjtaskcode" class="TJTaskCode"> <property name="taskcode" value="${TJ.TaskCode}"/> </bean> </beans> 3. Config.properties文g的配|?br />本例中我提供一对简单的数据用于CQ?br /> #Transaction Journal Task Codes TJ.TaskCode = 1034,1035,1037,1038,1040,1057,1058,1074 TJ.TaskCode是键Q?034,1035,1037,1038,1040,1057,1058,1074是| 4.Java Bean的定义?br />定义Java Bean TJTaskCode.Java用于存放所需要的数| public class TJTaskCode { private String taskcode; public void setTaskcode(String taskcode) { this.taskcode = taskcode; } public String getTaskcode() { return this.taskcode; } } 5.试E序TestAccessProperties.java的执行?br />import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.td.cc.audit.impl.TJTaskCode; public class TestAccessProperties { public static void main(String[] args) { ApplicationContext context; context = new ClassPathXmlApplicationContext("applicationContext.xml"); TJTaskCode taskcode1 = (TJTaskCode)context.getBean("tjtaskcode"); String taskcode2 = taskcode1.getTaskcode(); System.out.println(taskcode2); if (taskcode2.indexOf("1034")!=-1) // { System.out.println("Y"); } else{ System.out.println("N"); } } }
]]> 软g研发人员考核的十基本原?/title> http://www.aygfsteel.com/gdws/archive/2008/08/01/219371.html帅子 帅子 Fri, 01 Aug 2008 08:01:00 GMT http://www.aygfsteel.com/gdws/archive/2008/08/01/219371.html http://www.aygfsteel.com/gdws/comments/219371.html http://www.aygfsteel.com/gdws/archive/2008/08/01/219371.html#Feedback 0 http://www.aygfsteel.com/gdws/comments/commentRss/219371.html http://www.aygfsteel.com/gdws/services/trackbacks/219371.html ◆要体现公司的价D 公司的hD体现了公司认可什么类型的人员?要挽留哪些h?提倡做什?对这些h员的认可可以通过具体的考核办法落实下来。比如企业鼓励在某一个业务领域内U篏丰富的领域经验,鼓励在某个技术方向上q行深入ȝ{,对于提倡的q些行ؓQ要有具体的奖励措施。所以在定义考核办法Ӟ需要首先考虑清楚要体C业的哪些价D?
◆要体现多力_得,质与量ƈ?
不能让那些完成了大量艰苦工作的h员吃亏,否则׃打击真正努力工作的h员的U极性。多力_得原则的实现Q基于对工作量的计算。规范的理都是“以Zؓ本、以q程为核心、以度量为基”的。要做到多劳多得需要做好对工作量的度量Q如果仅仅注重工作量而不x工作质量Q显然是不对的,而对于质量的考核Q可以通过多个渠道来获得数据,如发现的~陷个数、客L反馈{等。当然多力_得的前提是团队的目标达成了,如果目标未完成,多劳未必多得?
◆要鼓励创C规范理
理与创新是软g企业发展?个轮子,通过规范理可以保企业的常规发展,通过创新实现企业的蟩跃式发展Q管理ؓ创新提供了{化ؓ生力的基础Q创新可以快速地提高企业的竞争能力,因此在考核办法中要体现出来对这2者的认可。有的企业设立了创新基金Q专门用来奖励那些技术创新、管理创新等Q有的企业在研发人员的考核指标中加入了对过E改q工作的支持{指标?
◆要鼓励技术复?
成功的Y件企业必d人员、技术、过E三个方面加大投入。Y件复用是目前软g公司提高软g生率的最有效的手D之一Qؓ了在企业内徏立组l的技术复用体p,首先p鼓励大家dL取可复用的各U构Ӟd贡献可复用的构g。对于这U提取可复用构g的行为,应根据其可能带来的收益,适当l予奖励?
◆要因时而变Q但要尽可能保持q箋?
考核办法的制定都有一定的针对性,h一定时限性,随着公司内外部环境的变化Q随着公司文化的逐步E_Q对考核办法要逐步调整Q在改变考核办法Ӟ要注意保持考核办法的连l性,不要变化太大Q否则就会让被考核人无所适从Q生观望的心态,或者在研究考核办法上花费很多时_造成不必要的生效率的下降?
◆要量化与非量化结?
如果没有量化的考核指标Q全靠非量化的指标,对于开发h员来Ԍ很难体现多劳多得的原则,很容易走向“吃大锅饭”的模式Q无法调动开发h员的U极性。如果全量化也很难,在开发过E中Q有很多工作难以量化Q比如需求开发的工作Q就很难定量的计工作量。因此在考核Ӟ在尽可能量化的基上,也允许有一些非量化的指标的存在。至?者的比重Q可以根据当前企业的理水^来确定。对于管理比较规范的企业Q成熟度比较高的企业Q可以采用量化的指标多一些,量化的比重大一些?
]]>
վ֩ģ壺
|
|
|
|
Ȫ |
˺ |
|
÷ӿ |
˳ |
|
|
|
ֽ |
|
|
|
|
ˮ |
|
ƽ |
ʯ |
̨ |
ɳ |
Խ |
ƽ |
|
ƽ |
|
ƽ |
ͨ |
|
ɿ |
ͷ |
Ī |
|
|
|
Ӽ |
֥ |
|
ǧ |