锘??xml version="1.0" encoding="utf-8" standalone="yes"?>综合偷自拍亚洲乱中文字幕,久久夜色精品国产亚洲AV动态图
,亚洲砖码砖专无区2023
http://www.tkk7.com/Jcat/category/11843.html瀹犺頸涓嶆儕錛岄棽鐪嬪涵鍓嶈姳寮鑺辮惤锝烇綖 zh-cn Mon, 07 Jan 2013 04:39:20 GMT Mon, 07 Jan 2013 04:39:20 GMT 60 Groovy 淇グ絎?/title> http://www.tkk7.com/Jcat/archive/2008/11/10/239638.htmlJcat Jcat Mon, 10 Nov 2008 04:30:00 GMT http://www.tkk7.com/Jcat/archive/2008/11/10/239638.html http://www.tkk7.com/Jcat/comments/239638.html http://www.tkk7.com/Jcat/archive/2008/11/10/239638.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/239638.html http://www.tkk7.com/Jcat/services/trackbacks/239638.html 鎶婃渶甯哥敤鐨勪笢瑗塊兘璁劇疆鎴恉efault浜嗭紝緇忓父鍙互鐪佽繖鐪侀偅鐨勶紙姣斿鎷彿銆佸垎鍙楓乸ublic絳夛級錛涘張鍔犱笂闂寘錛屽垵瀛︾殑鏃跺欙紝鏈変簺浠g爜錛屼竴鐪兼湜鍘伙紝閮藉垎涓嶆竻鏄柟娉曘佹槸綾匯佽繕鏄棴鍖呫?br />榪欓噷鍏堢畝鍗曟葷粨涓涓嬪父鐢ㄧ殑淇グ絎︺?br />package 聽jcat.bit.g /* 淇グ絎︽湁涓夌被錛?br />1.聽static 2.聽浣滅敤鍩燂細public(榛樿),聽private,聽protected. 3.聽綾誨瀷錛歞ef錛堥粯璁わ紝鍔ㄦ侊級,聽void錛堟棤綾誨瀷錛岄潤鎬侊級,聽鍏跺畠甯歌闈欐佺被鍨?br />*/ class 聽Test聽{ 聽聽聽聽 static 聽def聽a_static_def聽 = 聽 ' a_static_def ' 聽聽聽聽static 聽a_static聽 = 聽 ' a_static ' 聽聽聽聽def聽a_def聽= 聽 ' a_def ' 聽聽聽聽static 聽 void 聽main(strs)聽{ 聽聽聽聽聽聽聽聽println聽a_static_def 聽聽聽聽聽聽聽聽println聽a_static 聽聽聽聽聽聽聽聽println聽t_static_def() 聽聽聽聽聽聽聽聽println聽t_static() 聽聽聽聽聽聽聽聽 new 聽Test().with聽{ 聽聽聽聽聽聽聽聽聽聽聽聽println聽a_def 聽聽聽聽聽聽聽聽聽聽聽聽println聽t_public_def() 聽聽聽聽聽聽聽聽聽聽聽聽println聽t_public() 聽聽聽聽聽聽聽聽聽聽聽聽println聽t_def() 聽聽聽聽聽聽聽聽} 聽聽聽聽} 聽聽聽聽 static 聽def聽t_static_def()聽{聽 // 聽def聽=聽鍙互榪斿洖浠諱綍綾誨瀷錛屽寘鎷瑅oid 聽聽聽聽聽聽聽聽 return 聽 " t_static_def " 聽聽聽聽} 聽聽聽聽static 聽t_static()聽{聽 // 聽鏈夊叾瀹冧慨楗扮鍙互鐪佺暐def錛?font color="#ff0000">榛樿public聽+聽def錛?/span>聽聽聽聽聽聽聽聽 return 聽 " t_static " 聽聽聽聽} 聽聽聽聽public 聽def聽t_public_def()聽{ 聽聽聽聽聽聽聽聽 return 聽 " t_public_def " 聽聽聽聽} 聽聽聽聽public 聽t_public()聽{聽 // 聽榛樿def 聽聽聽聽聽聽聽聽 return 聽 " t_public " 聽聽聽聽} 聽聽聽聽def聽t_def()聽{聽// 聽鑷沖皯瑕佹湁涓涓慨楗扮錛屾墍浠ヨ繖涓猟ef涓嶈兘鐪佺暐;聽涓旈粯璁ublic 聽聽聽聽聽聽聽聽 return 聽 " t_def " 聽聽聽聽} 聽聽聽聽static 聽 void 聽t_static_void()聽{ 聽聽聽聽聽聽聽聽 // return聽"t_static_void"聽聽聽聽 // 聽cannot聽return聽an聽object聽from聽a聽method聽that聽returns聽"void" 聽聽聽聽} }
]]> Groovy JDBC http://www.tkk7.com/Jcat/archive/2008/11/07/239258.htmlJcat Jcat Fri, 07 Nov 2008 07:02:00 GMT http://www.tkk7.com/Jcat/archive/2008/11/07/239258.html http://www.tkk7.com/Jcat/comments/239258.html http://www.tkk7.com/Jcat/archive/2008/11/07/239258.html#Feedback 3 http://www.tkk7.com/Jcat/comments/commentRss/239258.html http://www.tkk7.com/Jcat/services/trackbacks/239258.html 鐢↗DBC鎿嶄綔鏁版嵁搴擄紝瀵規瘮涓涓婮ava鍜孏roovy銆?br /> 鐜錛歋QL Server 2000 錛堣寰楁墦琛ヤ竵SP4錛屼笉鐒禞DBC璁塊棶浼氭姤閿欙級 JDBC Driver錛歮sbase.jar錛宮ssqlserver.jar錛宮sutil.jar Java鐗?br />
package
聽jcat.bit.java;
import
聽java.sql.
*
;
public
聽
class
聽JDBC聽{ 聽聽聽聽
public
聽
static
聽
void
聽main(String[]聽args)聽
throws
聽ClassNotFoundException,聽SQLException 聽{ 聽聽聽聽聽聽聽聽Class.forName(
"
com.microsoft.jdbc.sqlserver.SQLServerDriver
"
); 聽聽聽聽聽聽聽聽Connection聽conn聽
=
聽DriverManager.getConnection( 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs
"
, 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"
sa
"
,聽
"***
"
); 聽聽聽聽聽聽聽聽Statement聽stmt聽
=
聽conn.createStatement(); 聽聽聽聽聽聽聽聽ResultSet聽rs聽
=
聽stmt.executeQuery(
"
select聽top聽10聽*聽from聽authors
"
); 聽聽聽聽聽聽聽聽
while
聽(rs.next())聽{ 聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(rs.getString(
2
)
+
"
聽
"
+
rs.getString(
3
));聽聽//聽鏁癷d 聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽rs.close(); 聽聽聽聽聽聽聽聽stmt.close(); 聽聽聽聽聽聽聽聽conn.close(); 聽聽聽聽} }
Groovy鐗?br />package 聽jcat.bit.groovy import 聽groovy.sql.Sql class 聽JDBC聽{ 聽聽聽聽 static 聽 void 聽main(args)聽{ 聽聽聽聽聽聽聽聽Sql聽sql聽 = 聽Sql.newInstance( 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 " jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=pubs " , 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 " sa " ,聽 "*** " , 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 " com.microsoft.jdbc.sqlserver.SQLServerDriver " ) 聽聽聽聽聽聽聽聽sql.eachRow( " select聽top聽10聽*聽from聽authors " )聽{row聽 -> 聽聽聽聽聽聽聽聽聽聽聽聽println聽row.au_fname 聽 + 聽 " 聽 " 聽 + 聽row.au_lname 聽聽聽聽//鐩存帴鐢ㄦ暟鎹簱鐨勫瓧孌靛悕灝卞彲浠ユ搷浣滅粨鏋滈泦浜嗭紝涓嶇敤鍘繪暟id 聽聽聽聽聽聽聽聽} 聽聽聽聽} }
鎬葷粨 1. 寤虹珛鏌ヨ錛屽樊鍒笉澶э紝閮芥槸JDBC閭d竴濂楋紱Groovy涓嶇敤澶勭悊寮傚父 2. 澶勭悊鏌ヨ緇撴灉錛孏roovy鍥犱負鏈夐棴鍖咃紝澶勭悊榪欎簺榪唬闂寰堟柟渚?/font> 3. Groovy涓嶇敤鍏抽棴 ]]>Groovy Closure 鈥滄搷浣溾濅篃鎴愪簡鍙傛暟 http://www.tkk7.com/Jcat/archive/2008/11/07/239142.htmlJcat Jcat Thu, 06 Nov 2008 18:04:00 GMT http://www.tkk7.com/Jcat/archive/2008/11/07/239142.html http://www.tkk7.com/Jcat/comments/239142.html http://www.tkk7.com/Jcat/archive/2008/11/07/239142.html#Feedback 2 http://www.tkk7.com/Jcat/comments/commentRss/239142.html http://www.tkk7.com/Jcat/services/trackbacks/239142.html
1. 闂寘浠h〃錛堝畾涔夛級浜嗕竴孌典唬鐮侊紙鎿嶄綔錛夛細鍏夌湅榪欎竴鍙ワ紝鍏跺疄鏂規硶涔熻兘瀹炵幇鐩稿悓鐨勫姛鑳藉憖銆?br />2. 闂寘鍙互浣滀負鏂規硶鐨勫弬鏁幫細榪欐墠鏄棴鍖呯殑鐗規畩涔嬪鍜岀湡姝f剰涔夈?br /> 涓嬮潰婕旂ず涓涓彧鏈夐棴鍖呰兘鍋氾紝鏂規硶鍋氫笉鍒扮殑渚嬪瓙銆?br /> 鏂規硶鐨勪綔鐢ㄦ槸鎻愮偧鍏辨э紝鍐嶄唬涔嬩互涓嶅悓鐨勫弬鏁般傚嵆瀵逛笉鍚岀殑鈥滄暟鎹濊繘琛岀浉鍚岀殑鈥滄搷浣溾濄備粠3涓猯oop鍙互鐪嬪嚭錛?br />聽聽聽聽Comm1錛氱浉鍚岀殑鏁版嵁 聽聽聽聽Comm2錛氱浉鍚岀殑for寰幆 聽聽聽聽Diff1錛氬驚鐜綋鍐呮墽琛岀殑鎿嶄綔涓嶅悓
Comm1寰堝ソ鎼炲畾錛屽弬鏁癮a灝辨槸鎻愮偧鍑虹殑鍏辨?br />Comm2鐪嬩技鏄叡鎬э紝鍗村緢闅炬彁鐐鹼紝鍥犱負for寰幆鍜屽驚鐜綋鍐呯殑鎿嶄綔瀹為檯鏄竴涓暣浣擄紱Comm2琚獶iff1綰犵紶錛?涓猯oop鏄畬鍏ㄤ笉鍚岀殑3緇勬搷浣滐紝鏃犳硶鎻愮偧銆?br />姣斿錛屽鏋滅幇鍦ㄦ兂瑕佹寜鐓у鏁板驚鐜紝鍙兘渚濇鏀瑰姩涓変釜寰幆銆?/font>聽
int
[]聽aa聽
=
聽[
1
,聽
2
,聽
3
,聽
4
,聽
5
,聽
6
]
//
聽loop1
for
聽(
int
聽i聽
=
聽
0
;聽i聽
<
聽aa.length;聽i
++
)聽{ 聽聽聽聽println聽aa[i] }
//
聽loop2
for
聽(
int
聽i聽
=
聽
0
;聽i聽
<
聽aa.length;聽i
++
)聽{ 聽聽聽聽print聽aa[i] }
//
聽loop3
for
聽(
int
聽i聽
=
聽
0
;聽i聽
<
聽aa.length;聽i
++
)聽{ 聽聽聽聽print聽aa[i]聽
+
聽
'
聽
'
}
聽聽聽聽聽聽聽聽
//
聽loop1
for
聽(
int
聽i聽
=
聽
0
;聽i聽
<
聽aa.length;聽i聽
+=
聽
2
)聽{ 聽聽聽聽println聽aa[i] }
//
聽loop2
for
聽(
int
聽i聽
=
聽
0
;聽i聽
<
聽aa.length;聽i聽
+=
聽
2
)聽{ 聽聽聽聽print聽aa[i] }
//
聽loop3
for
聽(
int
聽i聽
=
聽
0
;聽i聽
<
聽aa.length;聽i聽
+=
聽
2
)聽{ 聽聽聽聽print聽aa[i]聽
+
聽
'
聽
'
}
涓嬮潰鎴戜滑鐪嬬湅闂寘鐨勫己澶т箣澶勶紝Comm1鍜孋omm2閮借寰堝ソ鐨勫皝瑁呭湪浜唋oop鏂規硶閲岋紱Diff1鍒欎綔涓哄弬鏁幫紙闂寘錛変紶鍏oop鏂規硶銆?br /> static 聽 void 聽main(String[]聽a)聽{ 聽聽聽聽 int []聽aa聽 = 聽[ 1 ,聽 2 ,聽 3 ,聽 4 ,聽 5 ,聽 6 ] 聽聽聽聽loop(aa)聽{聽println聽it } 聽聽聽 loop(aa)聽{聽print聽it聽}聽聽聽 聽聽聽 loop(aa)聽{聽print聽it聽 + 聽 ' 聽 ' 聽} }
濡傛灉鎴戜滑鎯寵鏀瑰彉寰幆鐨勬柟寮忥紝鍙渶瑕佹敼涓澶?
static 聽 void 聽loop( int []聽aa,聽Closure聽c)聽{ 聽聽聽聽 for 聽( int 聽i聽 = 聽 0 ;聽i聽 < 聽aa.length;聽i ++ )聽{ 聽聽聽聽聽聽聽聽c.call(aa[i]) 聽聽聽聽} 聽聽聽聽println聽 ' 聽 ' }
static 聽 void 聽loop( int []聽aa,聽Closure聽c)聽{ 聽聽聽聽 for 聽( int 聽i聽 = 聽 0 ;聽i聽 < 聽aa.length;聽i聽 += 聽 2 )聽{ 聽聽聽聽聽聽聽聽c.call(aa[i]) 聽聽聽聽} 聽聽聽聽println聽 ' 聽 ' }
鎬葷粨錛岄棴鍖呮湰韜茍娌′粈涔堥毦鐐癸紝鍏抽敭鏄庢牱鍚堢悊鐨勮璁′竴涓帴鍙桟losure綾誨瀷鍙傛暟鐨勬柟娉曘備粠GDK鐨勬柟娉曚篃鍙互鐪嬪嚭錛屽ぇ澶氭暟鎺ュ彈闂寘鐨勬柟娉曢兘鏄拰鏁扮粍榪唬鏈夊叧錛堜篃鍗沖驚鐜級銆?/font> ]]> Groovy Closure http://www.tkk7.com/Jcat/archive/2008/11/06/239095.htmlJcat Jcat Thu, 06 Nov 2008 10:50:00 GMT http://www.tkk7.com/Jcat/archive/2008/11/06/239095.html http://www.tkk7.com/Jcat/comments/239095.html http://www.tkk7.com/Jcat/archive/2008/11/06/239095.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/239095.html http://www.tkk7.com/Jcat/services/trackbacks/239095.html Definition
聽聽聽
/*
聽聽聽聽聽聽聽聽1.聽鍙橀噺鏄敤鏉ヨ鈥滄暟鎹濈殑錛岄棴鍖呭氨鏄敤鏉ヨ鈥滄搷浣溾濈殑 聽聽聽聽聽聽聽聽2.聽鍜屽畾涔変竴涓柟娉曚竴鏍鳳紝闂寘涔熷彲浠ユ湁鍏ュ弬 聽聽聽聽聽聽聽
*/
聽聽聽聽聽聽聽聽Closure聽p聽
=
聽{x聽
->
聽聽聽聽聽聽聽聽聽聽聽聽print聽x聽
+
聽
'
聽
'
聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽[
1
,聽
2
,聽
3
].each(p) 聽聽聽聽聽聽聽聽[
4
,聽
5
,聽
6
].each({x聽
->
聽
//
聽闂寘鏄彲浠ュ尶鍚嶇殑
聽聽聽聽聽聽聽聽聽聽聽聽print聽x聽
+
聽
'
聽
'
聽聽聽聽聽聽聽聽}) 聽聽聽聽聽聽聽聽[
7
,聽
8
,聽
9
].each聽{x聽
->
聽
//
聽鎷彿鏄彲浠ョ渷鐣ョ殑
聽聽聽聽聽聽聽聽聽聽聽聽print聽x聽
+
聽
'
聽
'
聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽[
10
,聽
11
,聽
12
].each聽{聽
//
聽it鏄粯璁ょ殑鍙傛暟鍚嶅瓧錛屾墍浠ヨ繖閲岃繛鍏ュ弬鐨勫畾涔夐兘鐪佷簡
聽聽聽聽聽聽聽聽聽聽聽聽print聽it聽
+
聽
'
聽
'
聽聽聽聽聽聽聽聽}
Usingpackage 聽jcat.bit class 聽Test聽{ 聽聽聽聽 /* 聽聽聽聽1.聽闂寘鏄璞★紝鏄疌losure綾葷殑瀹炰緥錛屾墍浠ワ細 聽聽聽聽聽聽聽聽1錛夊彲浠ュ湪綾婚噷瀹氫箟Closure綾誨瀷鐨勫睘鎬?br />聽聽聽聽聽聽聽聽2錛夊彲浠ュ湪鏂規硶閲屽畾涔塁losure綾誨瀷鐨勫彉閲?br />聽聽聽聽聽聽聽聽3錛夊彲浠ュ畾涔変竴涓柟娉曪紝鎺ユ敹Closure綾誨瀷鐨勫弬鏁?br />聽聽聽聽2.聽闂寘鍙堟湁鏂規硶鐗硅川錛屾瘯绔熷畠瑁呯殑鏄滄搷浣溾濓紝鐢氳嚦鍙互鍍忚皟鐢ㄦ柟娉曚竴鏍瘋皟鐢ㄩ棴鍖?br />聽聽聽聽聽*/ 聽聽聽聽static 聽 final 聽Closure聽PRINT_STR聽 = 聽{聽聽 // 聽灞炴э紙綾誨彉閲忥級 聽聽聽聽聽聽聽聽println聽it 聽聽聽聽} 聽聽聽聽 static 聽 void 聽main(String[]聽a)聽{ 聽聽聽聽聽聽聽聽 /* 聽聽聽聽聽聽聽聽闂寘綾諱技Java鐨勫唴閮ㄧ被錛屽尯鍒槸闂寘鍙湁鍗曚竴鐨勬柟娉曞彲浠ヨ皟鐢紝浣嗗彲浠ユ湁浠繪剰鐨勫弬鏁幫紝 聽聽聽聽聽聽聽聽闂寘鐢ㄢ渰}鈥濇嫭璧鳳紝鈥?>鈥濆墠闈㈡槸鍙傛暟錛屽悗闈㈡槸澶勭悊璇彞錛屽彲浠ョ洿鎺ヨ皟鐢紝涔熷彲浠ヤ嬌 聽聽聽聽聽聽聽聽鐢╟all璋冪敤銆備笉綆¢偅縐嶈皟鐢紝鏈鍚巊roovy緙栬瘧鍣ㄩ兘浼氭妸緙栬瘧鎴愬doCall鏂規硶鐨勮皟鐢紝 聽聽聽聽聽聽聽聽榪欐槸groovy瀵歸棴鍖呯殑涓涓殣钘忔柟娉曘?br />聽聽聽聽聽聽聽聽聽*/ 聽聽聽聽聽聽聽聽PRINT_STR(" 鍍忔柟娉曚竴鏍瘋皟鐢?/span>" ) 聽聽聽聽聽聽聽聽PRINT_STR.call( " 浣滀負Closure鐨勫疄渚嬶紝鍐嶈皟鐢ㄧ浉搴旂殑鏂規硶 " ) 聽聽聽聽聽聽聽聽Closure聽printLength聽 = 聽{String聽s聽 -> 聽聽 // 聽灞閮ㄥ彉閲?/span>聽聽聽聽聽聽聽聽聽聽聽聽println聽s.length() 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽printLength( " AAA " ) 聽聽聽聽聽聽聽聽 /* 聽聽聽聽聽聽聽聽閫氬父錛屾搷浣滄槸姝葷殑錛屾垜浠兘鍔ㄦ佷唬鍏ョ殑鏄滄暟鎹濄?br />聽聽聽聽聽聽聽聽闂寘浣垮緱鎴戜滑鍙互鍔ㄦ佺殑浠e叆涓孌碘滄搷浣溾濄?br />聽聽聽聽聽聽聽聽鈥滈棴鍖呮槸鍙互鐢ㄤ綔鏂規硶鍙傛暟鐨勪唬鐮佸潡銆傗?br />聽聽聽聽聽聽聽聽聽*/ 聽聽聽聽聽聽聽聽closureAsParameter(null ,聽printLength) 聽聽聽聽聽聽聽聽closureAsParameter( " BBB " ,聽PRINT_STR) 聽聽聽聽} 聽聽聽聽 static 聽 void 聽closureAsParameter(String聽s,聽Closure聽c)聽{ 聽聽聽聽聽聽聽聽 if 聽(s聽 != 聽 null )聽{ 聽聽聽聽聽聽聽聽聽聽聽聽c.call(s) 聽聽聽聽聽聽聽聽} 聽聽聽聽} }
----------------------------------------------------------------- 闄勪笂涓涓狫ava鐨勫尶鍚嶅唴閮ㄧ被鐨勪緥瀛愶紝鐢ㄦ潵鍜岄棴鍖呭姣斾竴涓嬨?br />package 聽jcat.bit; public 聽 class 聽AnonymousInnerClass聽{ 聽聽聽聽 public 聽 static 聽 void 聽main(String[]聽args)聽{ 聽聽聽聽聽聽聽聽AbsClass聽a聽 = 聽 new 聽AbsClass()聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 public 聽 void 聽foo(String聽s)聽{ 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(s); 聽聽聽聽聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽}; 聽聽聽聽聽聽聽聽a.foo( " ABC " ); 聽聽聽聽聽聽聽聽AbsClass聽b聽 = 聽 new 聽AbsClass()聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 public 聽 void 聽foo(String聽s)聽{ 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(s.length()); 聽聽聽聽聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽}; 聽聽聽聽聽聽聽聽b.foo( " ABC " ); 聽聽聽聽} } abstract 聽 class 聽AbsClass聽{ 聽聽聽聽 public 聽 abstract 聽 void 聽foo(String聽s); }
]]> Hello Grails http://www.tkk7.com/Jcat/archive/2008/11/04/238710.htmlJcat Jcat Tue, 04 Nov 2008 14:04:00 GMT http://www.tkk7.com/Jcat/archive/2008/11/04/238710.html http://www.tkk7.com/Jcat/comments/238710.html http://www.tkk7.com/Jcat/archive/2008/11/04/238710.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/238710.html http://www.tkk7.com/Jcat/services/trackbacks/238710.html 1. <Flex 3> 鍚屼簨緇欎簡鎴戜喚Flex鐨勬暀紼嬶紝鎶婂墠涓夌珷鐪嬩簡涓涓嬶紝鏈変簡鍒濇鐨勪簡瑙o紱FlexBuilder涔熺敤浜嗕竴鎶婏紝涓嶉敊錛屾晥鏋滃緢緇氫附銆?br /> 2. <IDEA 8> 鎭伴DEA 8 EAP (Early Access Preview)鍙戝竷錛屾悶浜嗕竴涓涓婅瘯璇曘備富瑕佽瘯浜嗚瘯瀵笷lex鐨勬敮鎸侊紝鎰熻榪樻湁寰呮彁鍗囥傚彟澶朓DEA瀵瑰唴瀛樼殑娑堣椾技涔庤秺鏉ヨ秺澶氫簡錛屾病鍋氭繁鍏ヤ綋楠屻?br /> 3. <Grails 1.0.3> 鎷垮嚭浜嗗皬浜屽幓騫撮佹垜鐨勭敓鏃ョぜ鐗┿奊rails鏉冨▉鎸囧崡銆嬶紝緲諱簡緲伙紝Hello World涓浼氬氨鍋氬ソ浜嗐傛墦綆楀啀榪涗竴姝ヤ綋楠屼竴涓嬨?br /> ]]>java foundation http://www.tkk7.com/Jcat/archive/2007/05/23/119499.htmlJcat Jcat Wed, 23 May 2007 14:35:00 GMT http://www.tkk7.com/Jcat/archive/2007/05/23/119499.html http://www.tkk7.com/Jcat/comments/119499.html http://www.tkk7.com/Jcat/archive/2007/05/23/119499.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/119499.html http://www.tkk7.com/Jcat/services/trackbacks/119499.html equals in String public 聽 boolean 聽equals(Object聽anObject)聽{ 聽聽聽聽 if 聽( this 聽 == 聽anObject)聽{ 聽聽聽聽聽聽聽聽 return 聽 true ; 聽聽聽聽} 聽聽聽聽 if 聽(anObject聽 instanceof 聽String)聽{ 聽聽聽聽聽聽聽聽String聽anotherString聽 = 聽(String)anObject; 聽聽聽聽聽聽聽聽 int 聽n聽 = 聽count; 聽聽聽聽聽聽聽聽 if 聽(n聽 == 聽anotherString.count)聽{ 聽聽聽聽聽聽聽聽 char 聽v1[]聽 = 聽value; 聽聽聽聽聽聽聽聽 char 聽v2[]聽 = 聽anotherString.value; 聽聽聽聽聽聽聽聽 int 聽i聽 = 聽offset; 聽聽聽聽聽聽聽聽 int 聽j聽 = 聽anotherString.offset; 聽聽聽聽聽聽聽聽 while 聽(n -- 聽 != 聽 0 )聽{ 聽聽聽聽聽聽聽聽聽聽聽聽 if 聽(v1[i ++ ]聽 != 聽v2[j ++ ]) 聽聽聽聽聽聽聽聽聽聽聽聽 return 聽 false ; 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽 return 聽 true ; 聽聽聽聽聽聽聽聽} 聽聽聽聽} 聽聽聽聽 return 聽 false ; 聽聽聽聽}
equals in Object 聽聽聽 public 聽 boolean 聽equals(Object聽obj)聽{ 聽聽聽聽 return 聽( this 聽 == 聽obj); 聽聽聽聽}
聽聽聽聽System.out.println( new 聽String( " aa " ).equals( new 聽String( " aa " )));聽 // true 聽聽聽聽System.out.println( new 聽String( " aa " )聽 == 聽 new 聽String( " aa " ));聽聽聽聽聽聽 // false 聽聽聽聽System.out.println( " aa " .equals( " aa " ));聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 // true 聽聽聽聽System.out.println( " aa " 聽 == 聽 " aa " );聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 // true
]]>environment variable for java, groovy, ant and etc. http://www.tkk7.com/Jcat/archive/2007/05/23/119491.htmlJcat Jcat Wed, 23 May 2007 13:39:00 GMT http://www.tkk7.com/Jcat/archive/2007/05/23/119491.html http://www.tkk7.com/Jcat/comments/119491.html http://www.tkk7.com/Jcat/archive/2007/05/23/119491.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/119491.html http://www.tkk7.com/Jcat/services/trackbacks/119491.html JAVA_HOME
ANT_HOME
CATALINA_HOME
GROOVY_HOME
GRAILS_HOME
classpath=.(%JAVA_HOME%\jre\lib is not required) Path=%JAVA_HOME%\bin ;%ANT_HOME%\bin; %CATALINA_HOME%\bin; %GROOVY_HOME%\bin ;%GRAILS_HOME%\bin Note: if you add %GROOVY_HOME%\embeddable\groovy-all-1.0.jar to classpath Grails can't work correctly. ]]>Struts http://www.tkk7.com/Jcat/archive/2007/04/08/109284.htmlJcat Jcat Sun, 08 Apr 2007 15:47:00 GMT http://www.tkk7.com/Jcat/archive/2007/04/08/109284.html http://www.tkk7.com/Jcat/comments/109284.html http://www.tkk7.com/Jcat/archive/2007/04/08/109284.html#Feedback 1 http://www.tkk7.com/Jcat/comments/commentRss/109284.html http://www.tkk7.com/Jcat/services/trackbacks/109284.html struts鐢ㄤ簡涔熶竴騫翠簡錛屽熀鏈殑涓滆タ閮戒細鐢紝涓嶈繃鍥犱負鏄湪宸ヤ綔涓竟瀛﹁竟鐢紝闅懼厤寰堝鐭ヨ瘑鐐歸兘涓嶇郴緇燂紝鎯劎鍛銆傝繖鍑犲ぉ鎵炬湰涔︽⒊鐞嗕竴涓嬨?/span> ---MVC--- V錛氬縐嶈鍥懼叡浜竴涓悗鍙版ā鍨?br>M錛氬疄鐜頒笌鐣岄潰鐙珛錛岃壇濂界殑灝佽 C錛氭洿濂界殑緇存姢紼嬪簭嫻佺▼ model1錛欽SP錛圴銆丆錛?JavaBean錛圡錛?br>鍙傜敤浜庡皬鍨嬬▼搴忥紝JSP鐨勫弻閲嶈鑹蹭嬌HTML鍜孞ava娣峰悎錛屽緢闅劇淮鎶ゃ?br> model2錛欽SP(V)+Servlet(C)+JavaBean(M) Struts涔熸槸model2錛堢敤ActionServlet浠f浛Servlet錛夈係truts鐨勬墍鏈夊姛鑳介兘鏄緩绔嬪湪宸叉湁鐨凧ava Web緇勪歡涓婏紝濡係ervlet錛孞SP錛孞avaBean錛屽畠鍙槸鍒╃敤涓縐嶆柟寮忓皢榪欎簺鍏冪礌緇勭粐浜嗚搗鏉ワ紝浣垮畠浠崗鍚屽伐浣溿?br> ---鐐規淮--- 鍦⊿truts搴旂敤紼嬪簭涓紝鎵鏈夌殑鐢ㄦ埛璇鋒眰閮界敱ActionServlet鎺ユ敹錛岀劧鍚庢牴鎹畇truts-config.xml鏌ユ壘鐩稿簲鐨勫瓙鎺у埗鍣ㄣ俉eb瀹瑰櫒鍔犺澆Struts搴旂敤紼嬪簭鍚庯紝struts-config.xml琚鍏堣鍏ュ唴瀛樻垚涓轟竴涓狝ctionMapping瀵硅薄銆?br> 鍩烘湰嫻佺▼錛欻ttpRequest-->XxxForm-->validate()=true-->XxxAction-->execute()-->(return) ActionForward-->JSP榪欏叾涓殑閰嶇疆淇℃伅閮藉瓨鍦ㄤ簬struts-config涓?br>鍥介檯鍖栵細<bean:message key=""/> + ApplicationResources.properties ---web.xml--- <display-name> ApplicationContext name <listener> 閰嶇疆浜嬩歡鐩戝惉鍣?br><session-config> --> <session-timeout> Session榪囨湡鏃墮棿 <welcome-file-list> 鏍筓RL鐨勯粯璁ら〉闈細鍏堟壘index鏂囦歡錛屾壘涓嶅埌鍐嶆煡鎵捐list <error-page> 鍒跺畾鍦ㄨ繑鍥炵壒瀹欻TTP鐘舵佺爜錛屾垨鑰呯壒瀹氱被鍨嬬殑寮傚父琚姏鍑烘椂鏄劇ず鐨勯〉闈€?br><taglib> 瀵規爣璁板簱鎻忚堪絎︽枃浠訛紙Tag Library Descriptor File錛夋寚瀹氬埆鍚?br> ---struts-config.xml--- <data-source> 瀹氫箟鏁版嵁婧?br><global-exceptions> 瀹氫箟鍏ㄥ眬寮傚父 <global-forwards> 瀹氫箟鍏ㄥ眬杞彂錛堝悕瀛楃浉鍚屾椂錛屽眬閮ㄨ漿鍙戜紭鍏堬級 <controller> 瀹氫箟鎺у埗閰嶇疆綾伙紝濡俆ilesRequestProcessor <message-resources> 鎸囧畾娑堟伅璧勬簮鏂囦歡錛岄厤鍚?lt;bean:message key="" bundle="">浣跨敤 <plug-in> 鎻掍歡 ---Action浠?-- Action錛氱嚎紼嬪畨鍏ㄧ殑錛屾墍浠ラ兘鏄痵inglon鐨勩備笉搴旇鍦ˋction綾諱腑浣跨敤鍩熷彉閲忎繚瀛樼敤鎴風壒瀹氫俊鎭紝濡傜姸鎬佷俊鎭紙鍙互灝嗕竴浜涗笌鐗瑰畾璇鋒眰鏃犲叧鐨勫彉閲忓畾涔変負鍩熷彉閲忥紝濡侺og鍙橀噺錛?br>ActionForward錛氬彲浠ユ槸闈欐佺殑浠巆onfig鏂囦歡涓錛屽mapping.findForward("success")錛涗篃鍙互鏄姩鎬佺殑鎸囧畾錛屽new ActionForward("success","/aaa/bbb.jsp",true) 棰勫畾涔夌殑Action ForwardAction 錛氱被浼?lt;jsp:forward> IncludeAction 錛氱被浼?lt;jsp:include> 浠ヤ笂涓や釜Action錛屼嬌Struts閬靛驚MVC錛岄伩鍏嶇洿鎺ヨ皟鐢↗SP錛屽彲浠ュ厖鍒嗗埄鐢ㄦ帶鍒跺櫒鐨勯澶勭悊鍔熻兘銆?nbsp; DispatchAction 錛氫互璧勬簮涓轟腑蹇冿紝鍑忓皯Action鐨勬暟閲忋?br> 閫氬父鍙緗畃arameter="method"錛屽垯璋冪敤鐨剈rl涓篽ttp://xxx/yyy?method=add 涔熷彲浠ヨ緗畃arameter="add, update"錛屽垯璋冪敤鐨剈rl涓篽ttp://xxx/yyy?add=true LookupDispatchAction 錛欴ispatchAction鐨勫瓙綾伙紝閫氳繃鍙嶆煡璧勬簮緇戝畾錛屾壘鍒扮被涓搴旂殑鏂規硶銆?br> SwitchAction 錛歋truts鏀寔澶氬簲鐢ㄧ▼搴忔ā鍧楋紙鍗砿ulti-module錛夛紝SwitchAction鐢ㄦ潵鎵ц鍦ㄤ笉鍚屽簲鐢ㄧ▼搴忔ā鍧楅棿鐨勫垏鎹㈡搷浣溿?br> ]]> Apache vs Tomcat http://www.tkk7.com/Jcat/archive/2007/03/06/102262.htmlJcat Jcat Tue, 06 Mar 2007 13:00:00 GMT http://www.tkk7.com/Jcat/archive/2007/03/06/102262.html http://www.tkk7.com/Jcat/comments/102262.html http://www.tkk7.com/Jcat/archive/2007/03/06/102262.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/102262.html http://www.tkk7.com/Jcat/services/trackbacks/102262.html 鏈川鍖哄埆錛?br />1錛?br />apache鏀寔闈欐侀〉闈紱 tomcat鏀寔鍔ㄦ侀〉闈紝姣斿servlet絳夈?br />2錛?br />apache鏄痺eb錛坔ttp錛夋湇鍔″櫒錛屽畠鏄笓闂ㄧ敤浜庢彁渚汬TTP鏈嶅姟錛屼互鍙婄浉鍏抽厤緗殑錛堜緥濡傝櫄鎷熶富鏈恒乁RL杞彂絳夌瓑錛?br />tomcat鏄簲鐢紙java錛夋湇鍔″櫒錛屽畠鍙槸涓涓猻ervlet錛坖sp錛夊鍣紝鍙互璁や負鏄痑pache鐨勬墿灞曪紝浣嗘槸鍙互鐙珛浜巃pache榪愯銆?br />3錛?br />apache鏄竴杈嗗崱杞︼紝涓婇潰鍙互瑁呬竴浜涗笢瑗垮html絳夈備絾鏄笉鑳借姘達紝瑕佽姘村繀欏昏鏈夊鍣紙妗訛級錛岃岃繖涓《涔熷彲浠ヤ笉鏀懼湪鍗¤濺涓娿?br />浣跨敤鍖哄埆 錛?br />tomcat 浣滀負 jsp錛宻ervlet 瀹瑰櫒錛岃櫧鐒舵湁闈欐佽В鏋愬姛鑳斤紝浣嗘ц兘涓婁笌 apache 鐩告瘮鐩稿樊寰堣繙銆?br />apache 鍙互榪愯涓騫翠笉閲嶅惎錛岀ǔ瀹氭ч潪甯稿ソ錛岃?tomcat 鍒欎笉瑙佸緱銆?br />鏁村悎 錛?br />涓鑸嬌鐢╝pache+tomcat鐨勮瘽錛宎pache鍙槸浣滀負涓涓漿鍙戯紝瀵筳sp鐨勫鐞嗘槸鐢眛omcat鏉ュ鐞嗙殑銆?br />鏁村悎鐨勫ソ澶勬槸 錛?br />濡傛灉瀹㈡埛绔姹傜殑鏄潤鎬侀〉闈紝鍒欏彧闇瑕丄pache鏈嶅姟鍣ㄥ搷搴旇姹傦紝apache 瑙f瀽 html 絳夐潤鎬佺綉欏甸潪甯稿揩錛屾槸緇忚繃鏃犳暟嫻嬭瘯璇佹槑鐨勩?br />濡傛灉瀹㈡埛绔姹傚姩鎬侀〉闈紝鍒欐槸Tomcat鏈嶅姟鍣ㄥ搷搴旇姹傘?br />鍥犱負jsp鏄湇鍔″櫒绔В閲婁唬鐮佺殑錛岃繖鏍鋒暣鍚堝氨鍙互鍑忓皯Tomcat鐨勬湇鍔″紑閿銆?鍏跺畠 錛?br />Tomcat鏄疉pache緇勭粐鍦ㄧ鍚圝2EE鐨凧SP銆丼ervlet鏍囧噯涓嬪紑鍙戠殑涓涓狫SP鏈嶅姟鍣?br />some official definitions: What is the Apache HTTP Server ? 聽聽聽 * is a powerful, flexible, HTTP/1.1 compliant web server 聽聽聽 * implements the latest protocols, including HTTP/1.1 (RFC2616) 聽聽聽 * is highly configurable and extensible with third-party modules 聽聽聽 * can be customised by writing 'modules' using the Apache module API 聽聽聽 * provides full source code and comes with an unrestrictive license 聽聽聽 * runs on Windows 2003/XP/2000/NT/9x, Netware 5.x and above, OS/2, and most versions of Unix, as well as several other operating systems What is the Apache Tomcat ? 聽聽聽 Apache Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process. 聽聽聽 Apache Tomcat is developed in an open and participatory environment and released under the Apache Software License. ]]> input data from cmd http://www.tkk7.com/Jcat/archive/2007/02/04/97871.htmlJcat Jcat Sun, 04 Feb 2007 11:24:00 GMT http://www.tkk7.com/Jcat/archive/2007/02/04/97871.html http://www.tkk7.com/Jcat/comments/97871.html http://www.tkk7.com/Jcat/archive/2007/02/04/97871.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/97871.html http://www.tkk7.com/Jcat/services/trackbacks/97871.html
import
聽java.io.InputStreamReader;
import
聽java.io.BufferedReader;
import
聽java.io.IOException;
/**
聽*聽User:聽Jcat 聽*聽Date:聽2006-11-19 聽
*/
public
聽
class
聽Lab聽{ 聽聽聽聽
public
聽
static
聽
void
聽main(String[]聽args)聽
throws
聽IOException聽{ 聽聽聽聽聽聽聽聽InputStreamReader聽ir; 聽聽聽聽聽聽聽聽BufferedReader聽in; 聽聽聽聽聽聽聽聽String聽s; 聽聽聽聽聽聽聽聽ir聽
=
聽
new
聽InputStreamReader(System.in); 聽聽聽聽聽聽聽聽in聽
=
聽
new
聽BufferedReader(ir); 聽聽聽聽聽聽聽聽s聽
=
聽in.readLine(); 聽聽聽聽聽聽聽聽System.out.println(s); 聽聽聽聽} }
]]> The ultimate webdesign usability checklist http://www.tkk7.com/Jcat/archive/2007/01/25/95893.htmlJcat Jcat Thu, 25 Jan 2007 04:39:00 GMT http://www.tkk7.com/Jcat/archive/2007/01/25/95893.html http://www.tkk7.com/Jcat/comments/95893.html http://www.tkk7.com/Jcat/archive/2007/01/25/95893.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/95893.html http://www.tkk7.com/Jcat/services/trackbacks/95893.html
I noticed that I, and fellow
webdesigners, keep making the same usability mistakes over and over.
This checklist with 88 questions is a must read for every webdesigner
who cares about usability.
This website, NotUsable.com , is not designed by me. Giving me the perfect excuse why this website doesn鈥檛 pass my own usability checklist. But I would love to hear your comments and don鈥檛 forget to let me know when you can answer the whole checklist with 鈥榶es鈥?
Note that my design company is called Achtentachtig , which means Eighty Eight in Dutch, that鈥檚 why there are 88 questions in this checklist. Just to let you know.
Enough talking, let鈥檚 start!
Technical
Did you validate your (X)HTML using W3C Markup Validation Service ?
Did you validate your CSS using W3C CSS Validation Service ?
Did you check your website in at least IE, FF, Opera and Safari ?
Images
Did you add the ALT and TITLE attributes to all your important images?
Did you add the LONGDESC attributes to all your image that need a description?
Did you write effective ALT text ?
Did you make the size of your pages less then 50KB?
Did you choose the appropriate filetype for your images?
Did you add a description to images that support your content?
Did you use plain text instead of images for important content?
Content
Did you use a sans-serif typeface with a decent font size for your body text?
Did you adjusted the leading and tracking, if necessary, to increase readability?
Did you align your body text to the left? (depends on language)
Did you use EM or percentages instead of PX?
Did you make sure that there are no whole sentences in uppercase?
Did you use less then 78 characters, including spaces, per line?
Did you make brief and precise paragraphs with explanatory titles?
Did you use lists to sum things up?
Did you write your conclusion first and then your explanation?
Did you create enough contrast between the text and the background?
Did you make your website also accessible for text-only browsers ?
Did you make sure that there are no 鈥榰nder construction鈥?pages?
Did you include a print function on pages with a large amount of text?
Did you include a print stylesheet ?
Did you replace all special characters with the ISO Latin-1 codes?
Did you spell check your content and did you proofread for grammar errors??
Navigation
Did you make sure that all your links work? W3C Link checker does the job.
Did you include a link to all your main pages on your homepage?
Did you include your main navigation on every page?
Did you use no more then 8 items in your main navigation?
Did you distinguish the active and nonactive page in the menu?
Did you use self explanatory link text instead of 鈥榗lick here鈥?
Did you use self explanatory link text instead of business terms?
Did you make a distinction between visited and non-visited links?
Did you make a distinction between links and plain text?
Did you add the TITLE attribute to all your links?
Did you use breadcrumbs if you have a large amount of pages?
Did you include a search option if you have a large amount of pages?
Did you make your logo link to your homepage?
Did you make a skip to content link at the top of your pages?
Did you make a skip to menu link at the top of your pages?
Did you make it possible to browse your website using SHIFT-TAB and RETURN?
Did you make sure you didn鈥檛 use any javascript links?
Structure
Did you make a consistent page structure?
Did you place your logo at the top left?
Did you place an explanatory tag line next to your logo?
Did you place your search box at the top right?
Did you place important content above the fold/scroll ?
Did you make your design on a grid system ?
Did you make your design fluid using percentages?
Did you make your website also viewable on low resolutions?
Did you make custom titles (as in TITLE tag) for all your pages?
Forms
Did you make sure that users don鈥檛 return to an altered form after an error?
Did you make a friendly and informative error page?
Did you make a friendly 鈥榯hank you鈥?page with a confirmation email?
Did you add only a 鈥檚ubmit鈥?button and no 鈥榬eset鈥?button?
Did you tell the user what to expect after clicking the submit button?
Did you split long forms up into multiply pages?
Did you gave the user room to type?
Did you place an asterisk when a field is compulsatory?
Did you keep the standard look of input fields that is generated by the browser?
Did you create a logical order of asking information?
Did you use double input fields for passwords only?
Did you let the computer, not the user, handle information formatting?
Did you make sure that users can fill in the entire form using the TAB key?
Did you explain to the user why you ask certain information?
Did you explain to the user what you are going to do with that information?
Did you use realtime validation using AJAX ?
Did you use the LABEL tag?
Did you place the LABEL above the input field, instead of next to it?
Did you choose the correct input type for different data?
Did you make the top input field automatically active using setfocus ?
Did you destinguish the active field from non-active fields using input:focus?
Did you use the FIELDSET and LEGEND entities when appropriate?
Did you check if your forms also work with Javascript turned off?
Multimedia
Did you make sure that essential information/navigation is not made in Flash?
Did you make sure that music and videoclips don鈥檛 start playing automatically?
Did you make sure that music and videoclips can be turned off at any time?
Did you inform the user about the size and length of your music and videoclips?
Extra features
Did you make a custom 404 page ?
Did you make a site map?
Did you make a rss feed ? (if you add content regularly)
Did you make a high contrast version of your website?
Did you make good looking URL鈥檚 (like this one)?
Did you make sure that there are no frames on your website?
Did you make sure that there are no pop ups on your website?
Did you make a contact form instead of just an email link?
Any suggestions?
Add number 88 by giving a comment on this post!
鍘熸枃鍦板潃
]]> online status indicator http://www.tkk7.com/Jcat/archive/2006/12/20/88968.htmlJcat Jcat Wed, 20 Dec 2006 01:34:00 GMT http://www.tkk7.com/Jcat/archive/2006/12/20/88968.html http://www.tkk7.com/Jcat/comments/88968.html http://www.tkk7.com/Jcat/archive/2006/12/20/88968.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/88968.html http://www.tkk7.com/Jcat/services/trackbacks/88968.html QQ聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽 yahoo.cn 聽聽聽聽聽聽聽聽聽聽聽聽
yahoo聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
onlinestatus.msn 聽聽 聽聽
聽 鍏充簬msn錛屼技涔庤繕娌℃湁鎵懼埌瀹樻柟鐨勬湇鍔★紙鍨冨溇寰蔣錛夛紝絎笁鏂規彁渚涚殑鏈嶅姟鎬繪槸涓嶅お紼沖畾 ]]> 涓浜涢〉闈㈣嚜鍔ㄨ煩杞殑瀹炵幇 http://www.tkk7.com/Jcat/archive/2006/11/22/82831.htmlJcat Jcat Wed, 22 Nov 2006 09:20:00 GMT http://www.tkk7.com/Jcat/archive/2006/11/22/82831.html http://www.tkk7.com/Jcat/comments/82831.html http://www.tkk7.com/Jcat/archive/2006/11/22/82831.html#Feedback 2 http://www.tkk7.com/Jcat/comments/commentRss/82831.html http://www.tkk7.com/Jcat/services/trackbacks/82831.html 鍔熻兘錛?縐掑悗錛岃嚜鍔ㄨ煩杞埌鍚岀洰褰曚笅鐨?2view.html鏂囦歡
聽
1錛塰tml鐨勫疄鐜?br />
< head > < meta聽 http-equiv ="refresh" 聽content ="5;url=02view.html" > </ head > 浼樼偣錛氱畝鍗?br />緙虹偣錛歋truts Tiles涓棤娉曚嬌鐢?/div>
聽
2錛塲avascript鐨勫疄鐜?br />
< script聽 language ="javascript" 聽type ="text/javascript" > 聽聽 setTimeout(" javascript:location.href='02view.html' " ,聽 5000 );聽 </ script >
浼樼偣錛氱伒媧伙紝鍙互緇撳悎鏇村鐨勫叾浠栧姛鑳?br />緙虹偣錛氬彈鍒頒笉鍚屾祻瑙堝櫒鐨勫獎鍝?/div>
聽
3錛夌粨鍚堜簡鍊掓暟鐨刯avascript瀹炵幇錛圛E錛?br />
< span聽 id ="totalSecond" > 5 </ span > < script聽 language ="javascript" 聽type ="text/javascript" > var 聽second聽 = 聽totalSecond.innerText; setInterval( " redirect() " ,聽 1000 ); function 聽redirect(){聽 totalSecond.innerText =-- second;聽 if (second < 0 )聽location.href = '02view.html'; } </ script >
浼樼偣錛氭洿浜烘у寲
緙虹偣錛歠irefox涓嶆敮鎸侊紙firefox涓嶆敮鎸乻pan銆乨iv絳夌殑innerText灞炴э級
聽
3'錛夌粨鍚堜簡鍊掓暟鐨刯avascript瀹炵幇錛坒irefox錛?br />
< script聽 language ="javascript" 聽type ="text/javascript" > 聽聽聽聽var 聽second聽 = 聽document.getElementById('totalSecond').textContent; 聽聽聽聽setInterval( " redirect() " ,聽 1000 ); 聽聽聽聽 function 聽redirect() 聽聽聽聽{ 聽聽聽聽聽聽聽聽document.getElementById('totalSecond').textContent聽 = 聽 -- second; 聽聽聽聽聽聽聽聽 if 聽(second聽 < 聽 0 )聽location.href聽 = 聽'02view.html'; 聽聽聽聽} </ script >
4錛夎В鍐矲irefox涓嶆敮鎸乮nnerText鐨勯棶棰?br />
< span聽 id ="totalSecond" > 5 </ span > < script聽 language ="javascript" 聽type ="text/javascript" > if (navigator.appName.indexOf( " Explorer " )聽 > 聽 - 1 ){ 聽聽聽聽document.getElementById('totalSecond').innerText聽 = 聽 " my聽text聽innerText " ; }聽 else { 聽聽聽聽document.getElementById('totalSecond').textContent聽 = 聽 " my聽text聽textContent " ; } </ script >
5錛夋暣鍚?錛夊拰3'錛?br />
< span聽 id ="totalSecond" > 5 </ span > < script聽 language ="javascript" 聽type ="text/javascript" > 聽聽聽聽var 聽second聽 = 聽document.getElementById('totalSecond').textContent; 聽聽聽聽 if 聽(navigator.appName.indexOf( " Explorer " )聽 > 聽 - 1 ) 聽聽聽聽{ 聽聽聽聽聽聽聽聽second聽 = 聽document.getElementById('totalSecond').innerText; 聽聽聽聽}聽 else 聽聽聽聽{ 聽聽聽聽聽聽聽聽second聽= 聽document.getElementById('totalSecond').textContent; 聽聽聽聽} 聽聽聽聽setInterval( " redirect() " ,聽 1000 ); 聽聽聽聽 function 聽redirect() 聽聽聽聽{ 聽聽聽聽聽聽聽聽 if 聽(second聽 < 聽 0 ) 聽聽聽聽聽聽聽聽{ 聽聽聽聽聽聽聽聽聽聽聽聽location.href聽 = 聽'02view.html'; 聽聽聽聽聽聽聽聽}聽 else 聽聽聽聽聽聽聽聽{ 聽聽聽聽聽聽聽聽聽聽聽聽if 聽(navigator.appName.indexOf( " Explorer " )聽 > 聽 - 1 ) 聽聽聽聽聽聽聽聽聽聽聽聽{ 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽document.getElementById('totalSecond').innerText聽 = 聽second -- ; 聽聽聽聽聽聽聽聽聽聽聽聽}聽 else 聽聽聽聽聽聽聽聽聽聽聽聽{ 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽document.getElementById('totalSecond').textContent聽= 聽second -- ; 聽聽聽聽聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽} 聽聽聽聽} </ script >
]]>
TAKE ALL'S FISH http://www.tkk7.com/Jcat/archive/2006/08/12/63218.htmlJcat Jcat Sat, 12 Aug 2006 07:28:00 GMT http://www.tkk7.com/Jcat/archive/2006/08/12/63218.html http://www.tkk7.com/Jcat/comments/63218.html http://www.tkk7.com/Jcat/archive/2006/08/12/63218.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/63218.html http://www.tkk7.com/Jcat/services/trackbacks/63218.html 鍚夌ゥ涓夊疂 http://struts.apache.org/ http://www.springframework.org/http://www.hibernate.org/ Apachehttp://ant.apache.org/ Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles.
http://lucene.apache.org/
Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform. http://jakarta.apache.org/commons/index.html The Commons is a Jakarta subproject focused on all aspects of reusable Java components. http://jakarta.apache.org/velocity/index.html Velocity is a Java-based template engine. It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.Sourceforge http://junit.sourceforge.net/ JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. http://httpunit.sourceforge.net/ HttpUnit makes you easy聽 to be able to bypass the browser and access your site from a program. When combined with a framework such as JUnit, it is fairly easy to write tests that very quickly verify the functioning of a web site.http://dozer.sourceforge.net/ Dozer is a powerful, yet simple Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types.http://xdoclet.sourceforge.net/xdoclet/index.html XDoclet is an open source code generation engine. It enables Attribute-Oriented Programming for java. In short, this means that you can add more significance to your code by adding meta data (attributes) to your java sources. This is done in special JavaDoc tags. http://displaytag.sourceforge.net The display tag library is an open source suite of custom tags that provide high-level web presentation patterns which will work in an MVC model. Actually the display tag library can just... display tables! Give it a list of objects and it will handle column display, sorting, paging, cropping, grouping, exporting, smart linking and decoration of a table in a customizable XHTML style.http://cglib.sourceforge.net/ cglib is a powerful, high performance and quality Code Generation Library, It is used to extend JAVA classes and implements interfaces at runtime.Others http://www.opensymphony.com/compass/ Compass is a first class open source Java Search Engine Framework, enabling the power of Search Engine semantics to your application stack decoratively. Built on top of the amazing Lucene Search Engine, Compass integrates seamlessly to popular development frameworks like Hibernate and Spring.http://www.opensymphony.com/quartz/ Quartz is a full-featured, open source job scheduling system that can be integrated with, or used along side virtually any J2EE or J2SE application - from the smallest stand-alone application to the largest e-commerce system.http://groovy.codehaus.org/ Groovy is an agile dynamic language for聽the Java Platform with many features that are inspired by languages like Python, Ruby and Smalltalk, making them available to Java developers using a Java-like syntax.http://www.singularsys.com/jep/ JEP is a Java library for parsing and evaluating mathematical expressions. With this package you can allow your users to enter an arbitrary formula as a string, and instantly evaluate it. JEP supports user defined variables, constants, and functions. A number of common mathematical functions and constants are included.http://www.dom4j.org/ dom4j is an easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP. http://www.castor.org/ Castor is an Open Source data binding framework for Java. It's the shortest path between Java objects, XML documents and relational tables. Castor provides Java-to-XML binding, Java-to-SQL persistence, and more. ]]> Hello Velocity http://www.tkk7.com/Jcat/archive/2006/08/08/62271.htmlJcat Jcat Tue, 08 Aug 2006 00:21:00 GMT http://www.tkk7.com/Jcat/archive/2006/08/08/62271.html http://www.tkk7.com/Jcat/comments/62271.html http://www.tkk7.com/Jcat/archive/2006/08/08/62271.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/62271.html http://www.tkk7.com/Jcat/services/trackbacks/62271.html 鍗曡娉ㄩ噴錛?##your note 澶氳娉ㄩ噴錛?#*your note*# 涓嶈兘鐩存帴璁塊棶瀵硅薄鐨勫煙錛屽彧鑳介氳繃鏂規硶鏉ヨ闂傚叧浜庢柟娉曠殑璋冪敤錛屾湁涓ょ鍙樹綋錛圴elocity浼氬府浣犺皟鐢ㄧ浉搴旂殑鏂規硶錛夛細 1錛夊浜巆ontext涓殑Hashtable瀵硅薄錛屽彲浠ョ洿鎺ョ敤$hashtable.key鏉ュ緱鍒皏alue錛岀浉褰撲簬$hashtable.get(key) 2錛夊浜巆ontext涓殑JavaBean瀵硅薄錛屽彲浠ョ洿鎺ョ敤$javaBean.property鏉ヨ闂紝鐩稿綋浜?javaBean.getProperty()瀹夐潤寮曠敤絎︼紙Quiet Reference Notation錛?font color="#ff0000">$! 浣滅敤錛氬綋寮曠敤鐨勫彉閲忎負null鏃訛紝灝嗚緭鍑虹┖瀛楃涓層傦紙濡傛灉鐢?xxx錛屽綋null鏃訛紝浼氳緭鍑哄瓧絎︿覆"$xxx"錛?br /> 鍙屽紩鍙蜂腑鐨?xxx灝嗕粛鐒惰瑙f瀽錛涘崟寮曞彿涓殑$xxx灝嗕笉琚В鏋愶紝杈撳嚭瀛楃涓?$xxx" 鍏充簬璺緞錛?br />1. 涓篤elocityEngine鎸囧畾velocityLoaderPath錛岃璺緞涓哄瓨鏀緑m鏂囦歡鐨勬牴鐩綍錛堝叾涓嬪彲浠ュ緩瀛愭枃浠跺す錛屾棤闇鍙﹀鎸囧畾錛?br />2. 瀵箆m鐨勫紩鐢ㄩ兘鏄互velocityLoaderPath寮濮嬬殑緇濆璺緞銆傛瘮濡傦細聽|-velocityLoaderPath 聽聽聽|-a.vm 聽聽聽|-B 聽聽聽聽聽|-b.vm 鍦╞.vm涓紩鐢╝.vm錛?parse("a.vm") 姝g‘錛浡?#parse("../a.vm") 閿欒
]]>
Doohickey http://www.tkk7.com/Jcat/archive/2006/08/06/62009.htmlJcat Jcat Sat, 05 Aug 2006 16:27:00 GMT http://www.tkk7.com/Jcat/archive/2006/08/06/62009.html http://www.tkk7.com/Jcat/comments/62009.html http://www.tkk7.com/Jcat/archive/2006/08/06/62009.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/62009.html http://www.tkk7.com/Jcat/services/trackbacks/62009.html
鏈鍚庣殑閫楀彿 String[] strs = {"1", "2", "3", }; System.out.println(strs.length); //3 榪欑珶鐒舵槸絎﹀悎璇硶鐨勶紒 ArrayInitializer:聽聽聽聽聽聽聽 { [VariableInitializer {, VariableInitializer} [,]] } VariableInitializer:聽ArrayInitializer聽Expressionhttp://java.sun.com/docs/books/jls/third_edition/html/syntax.html#18.1 "This is good for quick testing. I always use this. In my case, I have a table, sometimes I care some columns, other times I care some other columns, so I am lazy to remove the last comma when I change columns. It's convenient." 榪愯娌℃湁main鐨刯ava綾?br />聽聽聽聽聽聽閫氬父鎴戜滑闇瑕佸湪java綾諱腑娣誨姞main鍑芥暟鎵嶈兘鍦ㄥ懡浠よ榪愯榪欎釜綾伙紝浣嗘槸鏈変竴縐嶏紙鍙互璁╀綘鏅曟鐨勶級鏂規硶鍙互璁╀綘鍦ㄦ病鏈塵ain鐨勬儏鍐典笅涔熷彲浠ヨ繍琛宩ava class錛堝綋鐒朵笉鏄敤applet錛夛紝浠g爜濡備笅錛?/span>
public
聽
class
聽NoMainMethod
{ 聽聽聽聽
static
{ 聽聽聽聽聽聽聽聽System.out.println(
"
Hello聽word,聽no聽main聽method!
"
); 聽聽聽聽聽聽聽聽System.exit(
0
);
聽聽聽聽}
}
聽聽聽聽聽聽static璇彞鍧椾細鍦ㄥ姞杞界被鐨勬椂鍊欏姞杞斤紝瀹冨湪main鍑芥暟涔嬪墠榪愯銆?褰搒tatic璇彞鍧楄繍琛屽畬姣曞悗錛屼細瀵繪壘main鍑芥暟錛屽鏋滄病鏈夋壘鍒幫紝灝變細鎶涘嚭寮傚父銆備絾鏄湪浠ヤ笂鐨勪唬鐮佷腑錛宻tatic璇彞鍧楁墽琛屽悗錛屾垜浠粓姝㈢▼搴忕殑榪愯錛屾墍浠ュ紓甯稿氨涓嶄細琚姏鍑哄暒銆?br /> 璺沖嚭JavaBean鐨勫懡鍚嶈鑼?br />聽聽聽聽聽聽閫氬父錛孞avaBean鐨勫懡鍚嶈鑼冧負錛氬睘鎬у悕鐨勭浜屼釜瀛楁瘝涔熶笉鑳藉ぇ鍐欍傚嵆涓嶅彲浠ュ嚭鐜扮被浼?aAndB 榪欐牱鐨勫睘鎬у悕銆傚錛孒ibernate鐨凱O濡傛灉鍑虹幇榪欐牱鐨勫悕瀛楋紝灝嗘姏鍑簄et.sf.hibernate.PropertyNotFoundException寮傚父銆備絾鏄湁涓涓姙娉曞彲浠ヨВ鍐寵闂錛?br />
java聽file:聽聽聽聽聽
private
聽String聽aAndB;聽聽聽
public
聽String聽getA AndB()聽
{聽聽聽聽聽聽聽聽 聽聽聽聽聽聽聽聽
return
聽aAndB;聽聽聽 }
聽聽聽
public
聽
void
聽setA AndB(String聽aAndB)聽
{聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽 this
.aAndB聽
=
聽aAndB;聽聽聽 }
mapping.xml
<
property聽
name
="A AndB"
聽column
="a_and_b"
/>
聽聽聽聽聽聽緇撶爺絀跺彂鐜幫紝涓婅堪鍔炴硶鍙互鎴愬姛鐨勫皢aAndB榪欐牱鐨勫睘鎬т笌鏁版嵁搴搈apping璧鋒潵銆?br />聽聽聽聽聽聽鏄劇劧hibernate鏄氳繃setter鍜実etter鏉ヨ闂璞$殑灞炴х殑錛屾墍浠ユ垜浠彲浠ヨ錛歮apping.xml騫朵笉鏄湪綾葷殑灞炴у拰鏁版嵁搴撶殑瀛楁鍚嶄箣闂村仛鏄犲皠錛岃屾槸鍦╯etter/getter鍜屾暟鎹簱鐨勫瓧孌典箣闂村仛鏄犲皠銆?font color="red">聽聽聽聽聽聽璇氱劧錛屽嵆浣垮彲浠ヤ篃鍒繖涔堝共錛屽疄闄呭伐浣滀腑錛岃繕鏄閬胯繖縐嶉棶棰樼殑濂姐?/font>聽 ]]> Read source code is a good way to learn anything! http://www.tkk7.com/Jcat/archive/2006/08/03/61560.htmlJcat Jcat Thu, 03 Aug 2006 10:43:00 GMT http://www.tkk7.com/Jcat/archive/2006/08/03/61560.html http://www.tkk7.com/Jcat/comments/61560.html http://www.tkk7.com/Jcat/archive/2006/08/03/61560.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/61560.html http://www.tkk7.com/Jcat/services/trackbacks/61560.html
Experience To know how dose List.remove(Object) work, I do many test sample. But I still feel not very realizing. Finally, I聽took a look at聽souce code, and then I knew everything!public 聽 boolean 聽remove(Object聽o)聽 { 聽聽聽聽 if 聽(o聽 == 聽 null )聽 { 聽聽聽聽聽聽聽聽聽聽聽聽 for 聽( int 聽index聽 = 聽 0 ;聽index聽 < 聽size;聽index ++ ) 聽聽聽聽聽聽聽聽 if 聽(elementData[index]聽 == 聽 null )聽 { 聽聽聽聽聽聽聽聽聽聽聽聽fastRemove(index); 聽聽聽聽聽聽聽聽聽聽聽聽 return 聽 true ; 聽聽聽聽聽聽聽聽} 聽聽聽聽}聽 else 聽 { 聽聽聽聽聽聽聽聽 for 聽( int 聽index聽 = 聽 0 ;聽index聽 < 聽size;聽index ++ ) 聽聽聽聽聽聽聽聽 if 聽(o.equals(elementData[index]))聽 { 聽聽聽聽聽聽聽聽聽聽聽聽fastRemove(index); 聽聽聽聽聽聽聽聽聽聽聽聽 return 聽 true ; 聽聽聽聽聽聽聽聽} 聽聽聽聽聽聽聽聽} 聽聽聽聽return 聽 false ; 聽聽聽聽} 1. List store very object's reference but object's own. 2. remove(Object) will remove the first reference in List which refer to聽the object 3. If you want to change an object to a new index: back up it--> remove it--> re-add it Experience I create a class to handle something annotated by Annotations. But it doesn't work. I found out it is returned false by Class.getMethod().isAnnotationPresent(Todo.class) . Finally, I got the reason by reading source code.public 聽 enum 聽RetentionPolicy聽{ 聽聽聽聽 /** 聽聽聽聽聽*聽Annotations聽are聽to聽be聽discarded聽by聽the聽compiler. 聽聽聽聽聽*/ 聽聽聽聽SOURCE, 聽聽聽聽/** 聽聽聽聽聽*聽Annotations聽are聽to聽be聽recorded聽in聽the聽class聽file聽by聽the聽compiler 聽聽聽聽聽*聽but聽need聽not聽be聽retained聽by聽the聽VM聽at聽run聽time.聽聽This聽is聽the聽default 聽聽聽聽聽*聽behavior . 聽聽聽聽聽*/ 聽聽聽聽CLASS, 聽聽聽聽/** 聽聽聽聽聽*聽Annotations聽are聽to聽be聽recorded聽in聽the聽class聽file聽by聽the聽compiler聽and 聽聽聽聽聽*聽retained聽by聽the聽VM聽at聽run聽time,聽so聽they聽may聽be聽read聽reflectively . 聽聽聽聽聽* 聽聽聽聽聽*聽@see 聽java.lang.reflect.AnnotatedElement 聽聽聽聽聽 */ 聽聽聽聽RUNTIME }
]]> 灝忛敊涓嶆柇錛屽ぇ閿欎笉鐘?/title> http://www.tkk7.com/Jcat/archive/2006/07/25/59975.htmlJcat Jcat Tue, 25 Jul 2006 05:11:00 GMT http://www.tkk7.com/Jcat/archive/2006/07/25/59975.html http://www.tkk7.com/Jcat/comments/59975.html http://www.tkk7.com/Jcat/archive/2006/07/25/59975.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/59975.html http://www.tkk7.com/Jcat/services/trackbacks/59975.html 鐘訛細鍒氶厤緗ソstruts錛屽彲鏄疍ispatchAction鎬庝箞閮戒笉宸ヤ綔錛圓ction鍙互宸ヤ綔錛夛紝涔熶笉鎶ラ敊 鍘熷洜錛氬彧寮曞叆浜唖truts鑷韓鐨刯ar錛岀湅涓鐪媟elease涓璴ib涓嬶紝榪樻湁涓嶅皯闈瀞truts鐨刯ar錛屽彲浠ョ寽鎯寵繖浜涢兘鏄疍ispatchAction鎵闇瑕佺殑錛岃孉ction涓嶉渶瑕侊紙浠ュ墠浠ヤ負榪欎簺娌$敤錛夈備笉鎶ラ敊璁╂垜寰堥儊闂楓?br /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細鍒氶厤緗ソstruts錛宎ction鍙互宸ヤ綔浜嗭紝灝辨槸涓嶈兘姝g‘鐨刦orward鍒癹sp欏甸潰錛宔xecute涓姞鏂偣錛屼篃涓嶈繘鍏ャ?br />鍘熷洜錛歟xecute鏈変袱涓紒錛侊紒Http ServletRequest vs ServletRequest錛屽墠鑰呮墠鏄痵truts鎵浣跨敤鐨別xecute銆?br /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細鍦╳eb.xml閲岄潰璁劇疆濂戒簡< error-page > 聽聽聽聽聽聽聽聽< error-code > 404 </ error-code > 聽聽聽聽聽聽聽聽< location > /404.jsp </ location > </ error-page > 浣嗗綋鍑虹幇404 閿欒鏃訛紝騫舵病鏈夋樉紺?04.jsp榪欎竴欏碉紝鑰屾槸鏄劇ずbrowser鎻愪緵鐨別rror report page 鍘熷洜錛氬湪瀹㈡埛绔祻瑙堝櫒濡侷E鐨刬nternet閫夐」楂樼駭灞炴т腑榛樿浣跨敤鈥滃弸濂界殑http閿欒淇℃伅鈥濓紝榪欐牱浼氶犳垚浣犵殑鏈嶅姟鍣ㄦ槸杈撳嚭浣犳墍瀹氫箟鐨勯敊璇〉闈紝浣嗗埌瀹㈡埛绔IE榪欐販铔嬬粰瑕嗙洊鎺変簡銆傝В鍐蟲柟妗堟槸浣犲畾涔夌殑閿欒欏甸潰鐨勫ぇ灝忓繀欏誨ぇ浜?strong>512bytes 錛屽氨涓嶄細琚鎴風璁劇疆鎵褰卞搷浜嗐? 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細鐢╤ibernate璁塊棶鏁版嵁搴擄紝鍙互insert錛屽彲浠elect錛屽彲浠rop錛屽氨鏄笉鑳?strong>update錛岃屼笖娌℃湁浠諱綍閿欒娑堟伅 鍘熷洜錛?br /><class name="com.verican.base.model.CatalogPO" table="sys_catalog" mutable="false ">璁劇疆鎴?strong>true 鍗沖彲銆?br />錛堝綋mutable錛漟alse錛屽嵈鍙堟墽琛寀pdate鎿嶄綔鏃訛紝hibernate鑷沖皯搴旇鎻愪緵璀﹀憡娑堟伅鍛婄煡涓涓嬫墠瀵?鍙儨娌℃湁錛屾墍浠ュ緢闅懼彂鐜幫級 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細 聽聽聽聽聽聽Javascript寮瑰嚭紿楀彛鏃訛紝濡傛灉鐢ㄧ殑鏄浉瀵硅礬寰勶紝褰㈠javascript:void(window.open('../../ test.html'))錛屼笉鍚岀殑嫻忚鍣ㄧ殑澶勭悊涓嶅悓錛堝洜涓簀s鏄祻瑙堝櫒澶勭悊鐨勪笢瑗匡級銆?br />聽聽聽聽聽聽姣斿錛屼笉鏄儴緗插湪鏍圭洰褰曚笅鏃訛紙鏍圭洰褰曚笅鍙堝緩浜嗕竴涓洰褰曪級錛氬湪Firefox涓嬶紝鏄互鏈嶅姟鍣ㄤ負瑙嗚錛屽垯../../ 鍗沖彲錛涜屽湪IE涓嬶紝鍒欐槸浠ユ祻瑙堝櫒涓鴻瑙掞紝鍒欓渶瑕佸鍔犱竴綰э紝濡?strong>../../../ 銆?br />聽聽聽聽聽聽聽聽聽聽聽聽 瑙e喅錛氱敤緇濆璺緞 javascript:void(window.open('http://www.verican.com/test.html'))錛涙垨鑰咃紝鐢?<a target="_blank" href="../../test.html"> 錛堝洜涓鴻繖鏄湇鍔″櫒澶勭悊鐨勪笢瑗匡紝鎵浠ヤ笉綆¢儴緗插湪鍝噷錛岀浉瀵硅礬寰勯兘鏄敮涓紜畾鐨勶級 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細 鍒鋒柊鐨勬椂鍊?1錛夋姏鍑篠ervletException 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽2錛塗he page cannot be refreshed without resending the information, Click Retry to send the information again. 鍘熷洜錛歋truts涓璻edirect璁劇疆闂錛堝叿浣撳師鐞嗕互鍚庡啀鐮旂┒錛?br /> 瑙e喅錛氫竴鑸殑錛宖orward鍒頒竴涓叿浣撶殑page錛宺edirect錛漟alse錛沠orward鍒板彟涓涓猘ction錛宺edirect錛漷rue 聽聽聽聽聽聽聽聽聽聽聽
< forward聽 name ="add_item" 聽path ="newsletter.add_item.page" 聽redirect ="false" /> < forward聽 name ="success" 聽path ="/newsletter.do" 聽redirect ="true" /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細save a form --> forward to list page --> refresh --> retry --> save the form again (error)
鍘熷洜錛?br />< forward聽 name ="list" 聽path ="ticket.list.page" 聽redirect ="false" /> 瑙e喅錛氫竴鑸殑錛屼粠save涓涓〃鍗曞悗錛屽簲璇orward鍒板彟涓涓猘ction錛屼笖redirect錛漷rue錛堣屼笉鏄彟涓涓猵age錛屽嵆渚垮綋鍓峚ction閲屾湁榪欎釜page錛夈傝繖鏍峰彲浠ヤ繚璇佷笉浼氶氳繃鍒鋒柊閲嶅save鏁版嵁銆?br />< forward聽 name ="list" 聽path ="ticket.do" 聽redirect ="true" /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細 聽聽聽聽聽聽鐢⊿pring + Velocity鍙慹mail錛屽紑濮嬮兘濂藉ソ鐨勶紝涔熻兘鐜板疄鍥劇墖錛屼絾褰撳姞鍏ユ煇涓騫呭浘鐗囦互鍚庯紝鏃犳硶姝e父鏄劇ず錛堝緱鍒頒竴涓〉闈負絀虹櫧鐨凟mail錛岃櫧鐒朵篃鏈夊ぇ灝忥級銆傛妸鍥劇墖浠巄mp鎹㈠埌jpg錛屽啀鎹㈠埌gif錛屾湭鏋溿傚噺灝忓浘鐗囩殑灝哄銆佸ぇ灝忥紝鏈灉銆傚嚑涔庨兘瑕佺粷鏈涗簡锝烇綖锝?br /> 鍘熷洜錛?font color="#ff0000">NOTE: Invoke addInline after setText; else, mail readers might not be able to resolve inline references correctly.錛堣繖鏄疭pring API閲岀殑鍘熻瘽錛孨ND錛?br /> 鎰熷彈錛?br />聽聽聽聽聽聽1.浠ュ墠娌″啓榪囧彂Email鐨勭▼搴忥紝宸ヤ綔涓敤鍒頒簡錛岀収鐚敾铏庢嬁榪囨潵灝辯敤錛屼篃娌℃湁浠旂粏闃呰鏂囨。錛屽鑷磋繖嬈℃儴鐥涚殑鏁欒銆?br />聽聽聽聽聽 2.Spring涓繖閮ㄥ垎璁捐鐨勪篃鏈夐棶棰橈紝瀹冨湪涓や釜琛ㄩ潰涓婃病浠涔堝叧緋葷殑鏂規硶涔嬮棿錛屽緩绔嬩簡欏哄簭涓婄殑渚濊禆鍏崇郴 銆傝繖浣垮緱鍑虹幇榪欑鎯呭喌鏃訛紝娌℃湁浠諱綍綰跨儲銆?br /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細 閬嶅巻List鏃訛紝涓璋冪敤remove灝卞嚭閿欙紝錛堥敊璇殑錛変唬鐮佸涓?br />for 聽(Object聽o聽:聽list) 聽聽聽聽 { 聽聽聽聽聽聽聽聽聽聽聽聽list.remove(o); 聽聽聽聽聽聽聽聽} 鍘熷洜錛欳oncurrentModificationException錛屾湁remove鎿嶄綔鏃訛紝涓嶈兘鐢╢oreach寰幆 瑙e喅錛氱敤浼犵粺寰幆錛堢湅浜嗕紶緇熻繕鏄緢鏈夌敤鐨勶級for 聽( int 聽i聽 = 聽 0 ;聽i聽 < 聽list.size();聽i ++ ) 聽聽聽聽 { 聽聽聽聽聽聽聽聽聽聽聽聽list.remove(i -- ); 聽聽聽聽聽聽聽聽}
娉ㄦ剰remove榪?strong>鍚?/font>闇瑕?i--聽 (--i is wrong) 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細boolean 聽b聽 = 聽 new 聽Integer( 3 )聽 == 聽 new 聽Integer( 3 );聽 // false 鍘熷洜錛氬叾瀹炴槸寰堢畝鍗曠殑闂錛屼絾鏄疘DEA鍙細瀵筍tring鐨?= = 鍋氭櫤鑳芥彁紺猴紝娉ㄦ剰鍗沖彲銆?br /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細 org.hibernate.MappingException: Could not read mappings from resource: jcat/learn/mapping.xml
聽
寮濮嬩互涓鴻礬寰勬病鍐欏錛岃瘯楠屼簡N涓礬寰勭殑鍐欏彂鍚庯紝榪樻槸涓嶈銆傚悗鏉ユ墠鍙戠幇鏄洜涓簃apping.xml鏄┖鐨勩?/div>
聽
瑙e喅錛氱粰mapping.xml鍔犱笂涓涓┖澹沖氨鍙互浜嗭紙濂芥絀哄3涓嶇瓑浜庣┖錛?/div>
聽
<? xml聽version="1.0"聽encoding="gb2312" ?> <! DOCTYPE聽hibernate-mapping聽SYSTEM聽"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"聽 > < hibernate-mapping聽 default-lazy ="false" > </ hibernate-mapping > 聽
2.
packagename/filename 渚嬪瓙錛氬湪hibernate.cfg.xml涓敞鍐宮apping.xml
< mapping聽 resource ="jcat/learn/hibernate_in_spring/orm.xml" /> 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細鎻愪氦琛ㄥ崟紼嬪簭錛屽姞鍏ヤ簡涓婁紶鏂囦歡鐨勫姛鑳藉悗錛屽嚭鐜板紓甯?br />java.lang.IllegalArgumentException: Cannot invoke com.verican.newsadmin.form.TicketForm.setUploadFile -
argument type mismatch瑙e喅錛氬皢琛ㄥ崟澹版槑涓?font color="#ffa500">mulptipart 綾誨瀷 < html:form聽 action ="/ticket" 聽enctype ="multipart/form-data" > 聽聽聽聽聽聽聽聽聽< html:file聽 property ="uploadFile" /> </ html:form > 鐥?img src="http://www.tkk7.com/Emoticons/QQ/god.gif" border="0" height="20" width="20" />鐘訛細IE cannot open the Internet site file: ....
< html > < head > 聽聽聽聽< title ></ title > </ head > < body > 聽聽聽聽< span聽 id ="TypeDes2" /> 聽聽聽聽< script聽 type ="text/javascript" > 聽聽聽聽聽聽聽TypeDes2.innerHTML聽= 聽 " Test聽Span " ; 聽聽聽聽 </ script > </ body > </ html > 瑙e喅錛氬浜庡崟鏍囩錛屾祻瑙堝櫒鎵句笉鍒癷nnerHTML灞炴с傛敼涓哄弻鏍囩鍗沖彲銆?br />
< span聽 id ="TypeDes2" ></ span > ]]>
Hello Hibernate http://www.tkk7.com/Jcat/archive/2006/07/03/56338.htmlJcat Jcat Mon, 03 Jul 2006 06:24:00 GMT http://www.tkk7.com/Jcat/archive/2006/07/03/56338.html http://www.tkk7.com/Jcat/comments/56338.html http://www.tkk7.com/Jcat/archive/2006/07/03/56338.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/56338.html http://www.tkk7.com/Jcat/services/trackbacks/56338.html
POJO principle
聽
1. The class can not be final
聽
2. Must implement Serializable
聽
3. Must contain a non-argument constructor
聽
4. The getter and setter must be public
聽
]]> Keymap in IntelliJ http://www.tkk7.com/Jcat/archive/2006/06/26/55223.htmlJcat Jcat Mon, 26 Jun 2006 13:26:00 GMT http://www.tkk7.com/Jcat/archive/2006/06/26/55223.html http://www.tkk7.com/Jcat/comments/55223.html http://www.tkk7.com/Jcat/archive/2006/06/26/55223.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/55223.html http://www.tkk7.com/Jcat/services/trackbacks/55223.html 闃呰鍏ㄦ枃 ]]> Some useful IntelliJ Plugin http://www.tkk7.com/Jcat/archive/2006/06/24/54850.htmlJcat Jcat Sat, 24 Jun 2006 05:01:00 GMT http://www.tkk7.com/Jcat/archive/2006/06/24/54850.html http://www.tkk7.com/Jcat/comments/54850.html http://www.tkk7.com/Jcat/archive/2006/06/24/54850.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/54850.html http://www.tkk7.com/Jcat/services/trackbacks/54850.html ==must be installed==RegexPlugin http://www.intellij.org/twiki/bin/view/Main/RegexPlugin unitTest : better (and also bigger) than JunitGeneratorCVS bar: VCS bar is too oldSpellCheckPlugin http://www.intellij.org/twiki/bin/view/Main/SpellCheck DBHelper: more powerful than聽 SQL Query Plugin. Maybe the latter will be removed after I am familiar with DBHelper.http://ca.geocities.com/davidhuo2003/dbhelper.html Rearranger: use it in canonical class, such as bean聽聽http://www.intellij.org/twiki/bin/view/Main/RearrangerPlugin simpleUML聽聽 http://www.intellij.org/twiki/bin/view/Main/SimpleUML Key promoter: Shows to user how easy he can make same action using only keyboard ==good for using==IdeaMouseGestures: IdeaMouseGestures plugin provides easy way to assign Idea's menu items to mouse gestures. http://www.smardec.com/products/idea.html KonaWorks PowerPack : A new code action to easily insert an expression inside a string literalhttp://www.konaworks.org/ DragNDrop : This plugin will allow a user to drag and drop files into the main pane of IntelliJ Workspaces http://www.intellij.org/twiki/bin/view/Main/WorkspacesPlugin RemoteTail : The plugin allows the user to view the content of a file which could be on a different computer. Jump to Usage : Simple plugin to make navigation to element usages easier than using Alt+F7.http://sourceforge.net/projects/jumptousage Library Finder: helps to find library files (.jar/.zip) for a "fully qualified " class/resource name. http://code.google.com/p/libraryfinder/ IntelliLang : IntelliLang is a combination of three basic kinds of functionality that are meant to support the developer in dealing with certain tasks that relate to (custom) languages in IntelliJ IDEA.http://www.jetbrains.net/confluence/display/CONTEST/IntelliLang XPathView + XSLT-Support: required by IntelliLanghttp://www.intellij.org/twiki/bin/view/Main/XPathViewPlugin Tabifier :聽The tabifier plugin retabs Java code so that syntactic elements are aligned vertically.聽http://www.intellij.org/twiki/bin/view/Main/TabifierPlugin Struts Assistant : it will conflict with Struts Plugin, so Struts Assistant is enough.http://www.intellij.org/twiki/bin/view/Main/StrutsAssistant IdeaSpring : Helpful聽to edit聽applicationContext.xml.聽But it is even a commercial one! So it has to be re-download every 15 days.XFile: defaul Changes is good enough, so maybe it will be removed later.http://www.echologic.com/plugins/xfiles.html UpperLowerCapitalize : just use the capticalize, since there is default upper/lower in IDEAhttp://www.intellij.org/twiki/bin/view/Main/UpperLowerCapitalize IdeaJad : a popular decompiler http://www.tagtraum.com/ideajad.html SyncEdit: Remove the default shortcut "Tab" (for "Next SyncEditable Word"), since I need "Tab" work normally.World of Java http://www.worldofjava.org/ Scratch Pad: Additional editor tool window to hold pieces of code temporarily. No syntax colouring, intentions or error highlighting.http://www.intellij.org/twiki/bin/view/Main/ScratchPadPlugin HTML Preview : Provides preview for html files using Mozilla browser ==learning==TabSwitch : Open files/tabs switcherCVS Report for IntelliJ IDEA :聽CVS Report for IntelliJ IDEA is a free open source plugin for IntelliJ IDEA to generate statistical reports from your CVS repository. http://vcsreport.sourceforge.net/ RssPlugin : RSS Plugin for viewing RSS feeds within IntelliJ. http://www.intellij.org/twiki/bin/view/Main/RssPlugin Hibernate Tools : better than hibero which is even聽a commercial one!Smart Introduce: 聽how to use it?http://www.intellij.org/twiki/bin/view/Main/SmartIntroducePlugin GroovyJ: hoping it can become more powerfulhttp://groovy.codehaus.org/IntelliJ+IDEA+Plugin ==not very useful, so can be ignore==Code Outline : Have not found anything useful聽 (dosen't work聽in IDEA 6.0)OpenContainingForder: Plugin for Viewing folders with Windows Explorer, but cannot聽open a folder.聽So聽"Alt+Shift+E" is better聽LineMover : default "Ctrl+Shift+Up/Down" is enough.SQL Query Plugin : DBHelper is good enoughSQL script editor: DBHelper is good enough
JavaDoc Browser: the window can't be big enough, so acutal browser (such as fire fox) is better.
BTW: if you have any good recommendation,聽welcome to share with us.聽
]]> Hello Tomcat http://www.tkk7.com/Jcat/archive/2006/06/23/54606.htmlJcat Jcat Fri, 23 Jun 2006 01:11:00 GMT http://www.tkk7.com/Jcat/archive/2006/06/23/54606.html http://www.tkk7.com/Jcat/comments/54606.html http://www.tkk7.com/Jcat/archive/2006/06/23/54606.html#Feedback 0 http://www.tkk7.com/Jcat/comments/commentRss/54606.html http://www.tkk7.com/Jcat/services/trackbacks/54606.html
1. Tomcat config file, where you can change Tomcat's port number: <CATALINA_HOME>/conf/server.xml
聽
<
聽Host聽...
聽
>
聽 聽聽聽聽聽聽 ... 聽聽聽聽聽聽聽
<
聽Context聽聽
path聽
="/app1"
聽聽docBase聽
="app1"
聽聽debug聽
="0"
聽聽reloadable聽
="true"
聽
/>
聽 聽聽聽聽聽聽聽
<
聽Context聽聽
path聽
="/app2"
聽聽docBase聽
="app2"
聽聽debug聽
="0"
聽聽reloadable聽
="true"
聽
/>
聽 聽聽聽聽聽聽聽
<
聽Context聽聽
path聽
="root聽url "
聽聽docBase聽
="root聽dir聽(or聽the聽path聽of聽.war) "
聽聽debug聽
="0"
聽聽reloadable聽
="note1 "
聽
>
聽
< /
Host
>
聽聽
note1: whether auto-reload the web application, when .class file is changed 聽聽聽聽聽聽聽聽聽聽聽聽聽 1) during developing, set reloadable=true 聽聽聽聽聽聽聽聽聽聽聽聽聽 2) after deployment, set reloadable=false
2. Some libs
/server/lib聽
just for Tomcat
/shared/lib
for all web apps
/common/lib
both Tomcat and all web apps
/webapps/jcat/WEB-INF/lib
just present web app
聽
3. Immobile Directory Structure (the names are also immobile, include uppercase/lowercase) 聽聽聽聽/jcat 聽聽聽/jcat/WEB-INF 聽聽聽/jcat/WEB-INF/web.xml 聽聽聽/jcat/WEB-INF/classes 聽聽聽/jcat/WEB-INF/lib
聽聽聽聽聽
Note: WEB-INF/classes
is loaded by tomcat before
WEB-INF/lib
, so classes has priority than lib
聽
4.聽Scopes聽聽聽聽聽聽Application 錛氬湪鏁翠釜web搴旂敤紼嬪簭鍐呮湁鏁堛傚搴斾簬servelet涓殑ServletContext瀵硅薄錛孉ction涓殑鑾峰彇錛歡etServlet().getServletContext() 聽聽聽聽聽聽Session 錛氬湪涓涓敤鎴蜂笌鏈嶅姟鍣ㄥ緩绔嬭繛鎺ョ殑鏁翠釜榪囩▼涓湁鏁堛侫ction涓殑鑾峰彇錛歨ttpServletRequest.getSession() 聽聽聽聽聽聽Request 錛氬湪涓涓姹傚懆鏈熷唴鏈夋晥銆傚氨鏄粠浣犵偣鍑婚〉闈笂鐨勪竴涓寜閽紑濮嬪埌鏈嶅姟鍣ㄨ繑鍥炲搷搴旈〉闈負姝紙鍖呮嫭鍝嶅簲欏甸潰錛夈?br />聽聽聽聽聽聽Page 錛氫粎鍦ㄤ竴涓猨sp欏甸潰鍐呮湁鏁堛?br />
*1*
聽
Request in Struts: PageFrom (request.set Attribute by using Form)-->Action(request.get Attribute&set Attribute)-->PageTo (request.get Attribute by using EL)聽
*2*聽:
Parameter vs Attribute in request
聽聽聽Parameter
鏄?/span>
URL
甯﹁繃鏉ョ殑鍙傛暟錛屽彧鑳芥槸涓?/span>
String
錛屽
www.verican.com/test?para1=1¶2=ttt
聽聽聽鍦?/span>
Action
涓殑璋冪敤錛?/span>
request.getParameter("para1");聽
聽聽聽鍦ㄥ搷搴旈〉闈腑鐨勮皟鐢細
${param.para1}
錛?/span>
param
鏄?/span>
EL
鐨勯殣钘忓璞★級 聽
聽聽聽Attribute
涓鑸槸
Form
甯﹁繃鏉ョ殑灞炴э紝鍙互鏄換浣曞璞?br />聽聽聽
鍦?/span>
Action
涓殑璋冪敤錛氫竴鑸凡緇忓瓨鍦ㄤ簬
Form
瀵硅薄涓?
聽聽聽鍦ㄥ搷搴旈〉闈腑鐨勮皟鐢細
${attributeName.xxx}聽
錛?/span>
EL
浼氳嚜鍔ㄨ皟鐢?/span>
getXxx
鏂規硶錛屾墍浠ヨ
attribute
蹇呴』瀹炵幇
getXxx
鏂規硶錛?/span>
5. Web server璺熻釜瀹㈡埛鐘舵佺殑鍥涚鏂規硶錛圚TTP鏄棤鐘舵佺殑鍗忚錛?br />聽聽聽 1錛夊緩绔嬪惈鏈夎窡韙暟鎹殑闅愯棌琛ㄦ牸瀛楁 聽聽聽 2錛夐噸鍐欏寘鍚澶栧弬鏁扮殑URL 聽聽聽 3錛変嬌鐢ㄦ寔緇殑Cookie 聽聽聽 4錛変嬌鐢⊿ervlet API涓殑Session鏈哄埗 6. JavaBean鐨勬爣鍑?br />聽聽聽1) should be a public class 聽聽聽2) should have a non-argument constructor 聽聽聽3) fields should be privated, and using get & set to access them 聽聽聽4) also can have some other functions as a common class
]]> How to use jar to implement double-click-run like .exe file http://www.tkk7.com/Jcat/archive/2006/06/19/53857.htmlJcat Jcat Mon, 19 Jun 2006 14:45:00 GMT http://www.tkk7.com/Jcat/archive/2006/06/19/53857.html http://www.tkk7.com/Jcat/comments/53857.html http://www.tkk7.com/Jcat/archive/2006/06/19/53857.html#Feedback 2 http://www.tkk7.com/Jcat/comments/commentRss/53857.html http://www.tkk7.com/Jcat/services/trackbacks/53857.html 1. workdir=learnJar鐩綍緇撴瀯 + learnJar 聽| mf.mf 聽|+ test 聽聽聽| Test.java 聽 2. workdir>javac test\Test.java
+ learnJar 聽| mf.mf聽 聽|+ test 聽聽 | Test.java 聽聽 | Test .class
3. workdir>jar cvfm a.jar mf.mf test\Test.class
+ learnJar 聽| mf.mf 聽|+ test 聽聽 | Test.java 聽聽 | Test.class 聽|+ a.jar 聽聽 |+ META-INF 聽聽聽聽 | MANIFEST.MF 聽聽 |+ test 聽聽聽聽 | Test.class 聽4. workdir>java -jar a.jar hello world
NOTE 1. manifest.mf鍙互鏀懼湪浠諱綍浣嶇疆錛屼篃鍙互鏄叾瀹冪殑鏂囦歡鍚?鍙嶆鏈鍚巎ar涓殑鏂囦歡鍚嶄細琚嚜鍔ㄥ彉涓篗ANIFEST.MF) 2. "Manifest-Version: 1.0"--璇ヨ(浠ュ強鍏跺畠琛?鍐掑彿鍚庨潰蹇呴』鏄釜絀烘牸 錛屽惁鍒檍ar鏃跺嚭閿?invalid header field" 3. "Main-Class: test.Test<鍥炶濺>"--璇ヨ蹇呴』浠ヤ竴涓洖杞︾緇撴潫 錛屽惁鍒欐棤鏁堛?br />4. 濡傛灉鏄?font color="#0000ff">鏈塙I鐨勭▼搴?/font>錛?font color="#0000ff">鍙屽嚮jar鏂囦歡鍗沖彲榪愯銆?濡傛灉瀹夎浜唚inrar絳夊帇緙╄蔣浠訛紝jar鏂囦歡浼氳鍏寵仈錛屽洜姝わ紝鍙屽嚮鏃跺茍涓嶄細鎵цjar紼嬪簭錛岃屾槸璋冪敤鍘嬬緝杞歡鏉ユ墦寮jar鏂囦歡錛岃繖鏃訛紝灝唈ar鐨勫叧鑱斿幓鎺夊嵆鍙? Appendix Test.java
package
聽test;
import
聽javax.swing.
*
;
public
聽
class
聽Test聽
extends
聽JFrame
{ 聽聽聽聽
public
聽
static
聽
void
聽main(String[]聽args)
{ 聽聽聽聽聽聽聽聽Test聽impl
=
new
聽Test(); 聽聽聽聽聽聽聽聽JLabel聽label聽
=
聽
new
聽JLabel(
"
hello聽world
"
); 聽聽聽聽聽聽聽聽impl.add(label); 聽聽聽聽聽聽聽聽聽聽聽聽impl.pack(); 聽聽聽聽聽聽聽聽impl.setVisible(
true
); 聽聽聽聽}
}
mf.mfManifest - Version:聽 1.0 Main- Class:聽test.Test <鍥炶濺>
]]>
主站蜘蛛池模板:
亚洲av无码专区在线播放 |
成人免费福利电影 |
国产成人高清亚洲 |
黄网站色视频免费观看45分钟 |
免费激情视频网站 |
午夜在线a亚洲v天堂网2019 |
亚洲高清中文字幕免费 |
亚洲国产成人在线视频 |
中文字幕无码成人免费视频 |
亚洲一卡2卡3卡4卡乱码 在线 |
好爽…又高潮了毛片免费看 |
亚洲日韩精品无码专区加勒比☆
|
亚洲av永久中文无码精品综合 |
国产美女在线精品免费观看 |
亚洲不卡影院午夜在线观看 |
成人片黄网站色大片免费 |
亚洲av无码专区在线观看亚 |
免费国产a国产片高清 |
无遮挡国产高潮视频免费观看 |
亚洲中文字幕无码专区 |
免费av一区二区三区 |
亚洲AV永久无码精品成人 |
24小时在线免费视频 |
亚洲熟妇丰满xxxxx |
yy6080亚洲一级理论 |
免费无码黄网站在线看 |
99ri精品国产亚洲 |
一个人看www在线高清免费看 |
亚洲久热无码av中文字幕 |
亚洲不卡无码av中文字幕 |
全免费a级毛片免费看 |
亚洲一区二区影视 |
亚洲国产天堂久久久久久 |
免费黄色电影在线观看 |
亚洲an日韩专区在线 |
亚洲国产精品13p |
2022久久国产精品免费热麻豆 |
亚洲人成未满十八禁网站 |
亚洲精品成人片在线观看精品字幕 |
久久久久久精品免费看SSS |
亚洲av无码专区国产不乱码 |