锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲黄色高清视频,国产成人亚洲精品青草天美,亚洲性日韩精品一区二区三区http://www.tkk7.com/flyffa/category/16807.htmlzh-cnWed, 28 Feb 2007 03:46:04 GMTWed, 28 Feb 2007 03:46:04 GMT60銆恮eb銆戦潰鍚戝璞$殑javascripthttp://www.tkk7.com/flyffa/archive/2006/12/28/90493.htmlflyffaflyffaThu, 28 Dec 2006 06:39:00 GMThttp://www.tkk7.com/flyffa/archive/2006/12/28/90493.htmlhttp://www.tkk7.com/flyffa/comments/90493.htmlhttp://www.tkk7.com/flyffa/archive/2006/12/28/90493.html#Feedback1http://www.tkk7.com/flyffa/comments/commentRss/90493.htmlhttp://www.tkk7.com/flyffa/services/trackbacks/90493.html 1.1. 緇ф壙

浠婂ぉ閬囧埌浜嗛渶瑕佸湪 javascript 涓戶鎵跨殑闂錛?/span>

鏌ヤ簡涓浜涘笘瀛愶紝鑷繁鍙堝啓浜嗗嚑涓緥瀛愭祴璇曚簡涓涓嬶紝鎬葷粨濡備笅錛?/span>

1.1.1. 聽聽聽 涓夌鏂規硶

js 涓疄鐜扮戶鎵挎湁涓夌鏂規硶錛?/span>

鍋囪鐖剁被涓?/span> Parent, 瀛愮被涓?/span> Child,

絎竴縐嶏紝瀛愮被寮哄埗璋冪敤鐖剁被鏋勯?/span>

function Child(){

聽聽聽聽聽聽 Parent.call(this);

}

絎簩縐嶏紝瀛愮被闂存帴璋冪敤鐖剁被鏋勯?/span>

function Child(){

聽聽聽聽聽聽 this.base = Parent;

聽聽聽聽聽聽 this.base();

}

絎笁縐嶏細璁劇疆鍘熷瀷

function Child(){}

Child.prototype = new Parent();

榪欑鏂瑰紡铏界劧涓嶅鐩磋錛屽嵈搴旇鏄渶鏈夋晥鐜囩殑鏂瑰紡銆?/span>

1.1.2. 聽聽聽 鎬葷粨錛?/font>

鍏跺疄 js 鏈韓鏄病鏈変粈涔堢戶鎵夸箣綾葷殑姒傚康鐨勶紝鍙槸涓轟簡浣跨敤鍒╃敤 js 鐨勪竴浜涚壒鎬ц屽姞鐨勩?/span>

js 鐨勫師鍨嬫柟寮?/span> prototype, 浣垮緱璁稿鐨勫伐浣滃彉寰楀鏄撱?/span>

涓涓?/span> function 瀵硅薄鍜屾牴鎹?/span> function 鏋勯犲嚭鏉ョ殑瀵硅薄鏄笉鍚岀殑銆?/span>

涓涓?/span> function 瀵硅薄鐨勫師鍨嬪叾瀹炲氨鏄竴涓牴鎹?/span> function 瀵硅薄鏋勫緩鍑烘潵鐨勫璞°?/span>

璁頒綇錛氳繖涓璞″彲涓?/span> new 鍑烘潵鐨勫璞′笉涓鏍楓傚湪 function 鍐呴儴鐨勪唬鐮佸茍涓嶄細琚墽琛岋紝濡傦細

this.funcName = function() 榪欐牱鐨勪唬鐮併傝?/span> new 鍑烘潵鐨勫璞″垯涓嶇劧錛屼粬鍏鋒湁鎵ц鍚庣殑瀵硅薄鐗規с?/span>

function 鐨勫眬閮ㄥ彉閲忕浉褰撲簬 class 閲岀殑縐佹湁鍙橀噺錛屾棤娉曞湪瀛愮被涓幏鍙栧拰鎿嶄綔銆備絾 this. 鐨勯儴鍒嗘槸鍙互鐨勩?/span>

1.1.3. 聽聽聽 鐚滄祴鍜屽亣鎯?/font>

錛堣繖鏄垜鎺ㄦ柇鐨勶紝娌℃湁浠諱綍鐨勬牴鎹紝褰撶劧涔熸槸鍙互嫻嬭瘯鐨勶級錛?/span>

褰撲竴涓?/span> Child 琚?/span> new 鏃訛紝絎竴浜岀鏂規硶涓紝 js 鎵ц鍣?/span>

1 銆佸厛鍒嗛厤涓涓┖闂達紝錛堢浉褰撲簬 this = new Object() 錛?/span> (msdn 涓湁鍏蜂綋鐨勬弿榪?/span> )

2 銆佹嫹璐濆師鍨嬶細

3 銆佹墽琛屾瀯閫狅細涔熷氨鏄?/span> Child.call(this) 錛堢浉褰撲簬 child(), 姝ゆ椂 this 瀵硅薄鏈夊鹼級錛?/span> msdn 涓湁鎻忚堪錛?/span>

鐒跺悗鎵ц Parent(); 榪欎釜鏃跺?/span> parent 鐨勬瀯閫犲嚱鏁版墽琛屼互涓嬪嚑姝ワ細

1 銆佸皢 parent 鐨?/span> prototype 鎷瘋礉鍒?/span> object 鍖哄煙錛岃繖鏃惰鐩栦簡鍓嶉潰鐨勫尯鍩?/span> ( 濂藉儚嫻嬭瘯璇佹槑 parent 鐨勫師鍨嬪茍涓嶄細琚嫹璐濓紝姝ゆ涓嶄細琚墽琛?/span> )

2 銆佸榪欎釜鍖哄煙鎵ц鍒濆鍖栵紝涔熷氨鏄甯哥殑 function 璋冪敤鐨勮繃紼嬨傦紙鐩稿綋浜?/span> Parent(),this 鍙橀噺鏈夊鹼級

鑰屾櫘閫氱殑 function 璋冪敤搴旇鏄繖涓牱瀛愶細鐢變簬娌℃湁 new 鎿嶄綔絎︼紝鎵浠ユ病鏈変負鍏跺垎閰嶅綋鍓嶇殑 this( 涔熸病鏈夌┖闂?/span> ),

this 琚斁鍒頒簡 window 瀵硅薄涓娿備絾鏄?/span> new 鐨勬椂鍊欐樉鐒朵笉鏄繖鏍楓?/span>

obj.func() 鐨勮皟鐢ㄥ拰 func() 璋冪敤鏄畬鍏ㄤ笉涓鏍風殑錛?/span> obj.func 涓?/span> this 瀵硅薄鏄?/span> obj 瀵硅薄錛岃?/span> func() 璋冪敤 this 瀵硅薄鏄?/span> window 瀵硅薄錛岃繖涓簲璇ュ拰 jvm 涓潤鎬佹柟娉曞拰綾誨疄渚嬫柟娉曡皟鐢ㄧ殑鍖哄埆鐨勫師鐞嗕竴鏍楓?/span>

1.2. 鏂規硶閲嶈澆

鍦ㄥ疄鐜頒簡瀵硅薄緇ф壙涔嬪悗錛屾垜寮濮嬮潰涓村埌絎簩涓棶棰橈紝閲嶈澆銆?/span>

1.1.4. 聽聽聽 涓ょ鏂規硶

js 鎬庢牱瀹炵幇閲嶈澆銆?/span>

1 銆佺畝鍗曠殑閲嶈澆錛?/span>

鍦ㄨ繖縐嶉噸杞戒腑錛屽瓙綾葷殑鏂規硶鏃犻渶璋冪敤鐖剁被鐨勬柟娉曪紝鐩存帴鍦ㄦ墽琛岀埗綾繪瀯閫犱箣鍚庯紝鍐嶆墽琛屽瓙綾葷殑閲嶈澆鏂規硶錛屽 Parent 鐨?/span> toString() 鏂規硶錛岃繖鏃跺彧闇鎵ц this.toString = function(){....} 灝卞彲浠ヤ簡銆?/span>

2 銆佽皟鐢ㄧ埗綾繪柟娉曠殑閲嶈澆錛?/span>

鐢變簬 js 瀹為檯榪愯鏃跺茍娌℃湁鐖剁被銆佸瓙綾諱袱涓疄渚嬬┖闂達紝鎵浠?/span> super.toString() 鑲畾鏄笉琛岀殑錛岃屽湪瀛愮被鐨?/span> toString 鏂規硶涓繘琛?/span> this.toString() 璋冪敤鍙兘寮曡搗鍐呭瓨婧㈠嚭錛屽叾瀹炶繖縐嶄篃鍙互鎯沖姙娉曞仛鍒般?/span>

this.super_toString = this.toString();

this.toString=function(){

聽聽聽聽聽聽 ..............

聽聽聽聽聽聽 this.super_toString();

聽聽聽聽聽聽 ..............

}



flyffa 2006-12-28 14:39 鍙戣〃璇勮
]]>
寰楀埌鍑嗙‘鐨勫湪綰夸漢鏁扮粺璁★紞鍑忓皯鎼滅儲寮曟搸鐨勫共鎵?/title><link>http://www.tkk7.com/flyffa/archive/2006/12/14/87722.html</link><dc:creator>flyffa</dc:creator><author>flyffa</author><pubDate>Thu, 14 Dec 2006 07:10:00 GMT</pubDate><guid>http://www.tkk7.com/flyffa/archive/2006/12/14/87722.html</guid><wfw:comment>http://www.tkk7.com/flyffa/comments/87722.html</wfw:comment><comments>http://www.tkk7.com/flyffa/archive/2006/12/14/87722.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/flyffa/comments/commentRss/87722.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/flyffa/services/trackbacks/87722.html</trackback:ping><description><![CDATA[ <h2 style="MARGIN: 13pt 0cm"> <span style="FONT-FAMILY: 榛戜綋; mso-ascii-font-family: Arial">鍩烘湰鏂規硶錛?/span> </h2> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍩烘湰鐨勬柟娉曪紝緗戜笂鍒板閮芥槸錛屽湪</span> <span lang="EN-US">java</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓氨鏄湪</span> <span lang="EN-US">web.xml</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">娉ㄥ唽涓涓?/span> <span lang="EN-US">Listener</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛屽涓嬶細</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"><listener><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span><listener-class>xp.web.SessionCounter</listener-class><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"></listener></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US">SessionCounter.java</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀹炵幇</span> <span lang="EN-US">javax.servlet.http.HttpSessionListener</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎺ュ彛錛屽垎鍒湪</span> <span lang="EN-US">sessionCreated</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏂規硶鍜?/span> <span lang="EN-US">sessionDestroyed</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏂規硶涓鐞?/span> <span lang="EN-US">session</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏁扮洰銆?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欐牱鐨勬柟娉曟湁涓瀹氱殑闂錛?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US">1</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">銆佸浜庣湡姝d粠緗戦〉璁塊棶鐨勫拰鎼滅儲寮曟搸鐨?/span> <span lang="EN-US">spider</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏃犳硶鍖哄垎銆?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US">2</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">銆佸綋</span> <span lang="EN-US">Tomcat</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閲嶅惎鏃訛紝鍔犺澆浜嗕笂嬈℃寔涔呭寲鐨?/span> <span lang="EN-US">session</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏃訛紝鏃犳硶鍑嗙‘璁$畻鍦ㄧ嚎鏁般?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絎簩涓棶棰樻垜浠彲浠ヤ笉浜堣冭檻錛岃繖鏄?/span> <span lang="EN-US">tomcat</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀹瑰櫒瀹炵幇涓嶆爣鍑嗙殑闂錛屾垜浠瑙e喅鐨勬槸鐨勭涓涓棶棰橈紝濡備綍鐭ラ亾浣犵殑璁塊棶鐨勬槸鐪熷疄鐨勩?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <strong> <span id="i8y8iee" class="2Char"> <span style="FONT-SIZE: 16pt; FONT-FAMILY: 榛戜綋; mso-ascii-font-family: Arial; mso-bidi-font-family: 'Times New Roman'">鐢?/span> </span> <span id="qam0qc0" class="2Char"> <span lang="EN-US" style="FONT-SIZE: 16pt; mso-bidi-font-family: 'Times New Roman'"> <font face="Arial">js</font> </span> </span> <span id="eo8m68i" class="2Char"> <span style="FONT-SIZE: 16pt; FONT-FAMILY: 榛戜綋; mso-ascii-font-family: Arial; mso-bidi-font-family: 'Times New Roman'">緇曡繃鎼滅儲寮曟搸</span> </span> </strong> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍋氳繃</span> <span lang="EN-US">pv</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">緇熻鐨勯兘鐭ラ亾錛屽彲浠ョ敤</span> <span lang="EN-US">script</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勬柟寮忓緱鍒頒綘鐪熷疄鐨?/span> <span lang="EN-US">pageView</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏁扮洰錛屾垜浠幇鍦ㄨ鍋氱殑灝辨槸榪欐牱鐨勪竴浠朵簨鎯咃紝鎴戜滑鍦ㄦ墍鏈夌殑欏甸潰閮藉姞鍏ヤ竴孌佃瘽錛?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"><script type="text/javascript"><o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">document.write ("<iframe src='/sessionCountServlet' width=0 height=0 frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>");<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"></script></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐒跺悗鎴戜滑鍐欎笂涓涓?/span> <span lang="EN-US">servlet</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏉ヨ褰曡繖浜涚湡姝g殑璁塊棶鑰呫?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">import java.io.*;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">import javax.servlet.*;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">import javax.servlet.http.*;</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">public class SessionCounterServlet extends HttpServlet {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public SessionCounterServlet() {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>super();<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public void doGet(HttpServletRequest request,<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </span>HttpServletResponse response) throws IOException,<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽 </span>ServletException {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>process(request, response);<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public void doPost(HttpServletRequest request,<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </span>HttpServletResponse response) throws IOException,<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽 </span>ServletException {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>process(request, response);<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public void process(HttpServletRequest request,<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </span>HttpServletResponse response) throws IOException,<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽 </span>ServletException {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>SessionCounter.put(request.getSession().getId());<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">}</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎴戜滑鍙互鐪嬪埌榪欎釜</span> <span lang="EN-US">servlet</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍙槸鍋氫簡涓浠朵簨鎯咃紝鍦?/span> <span lang="EN-US">process</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閲岄潰鍋氫簡</span> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">SessionCounter.put(request.getSession().getId());</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欎釜鍔ㄤ綔銆?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎴戜滑鏉ョ湅鐪嬫垜浠殑</span> <span lang="EN-US">SessionCounter</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍋氫簡浜涗粈涔堬細</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">import javax.servlet.http.*;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">import java.util.Hashtable;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">public class SessionCounter implements HttpSessionListener {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public SessionCounter() {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public static Hashtable m_real = new Hashtable();<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>private static long count = 0;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public void sessionCreated(HttpSessionEvent e) {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>count++;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public void sessionDestroyed(HttpSessionEvent e) {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>if (count > 0) {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽聽聽聽聽 </span>count--;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>m_real.remove(e.getSession().getId());<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public static long getSessionCount() {<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>return count;<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public static void put(String sessionId){<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>m_real.put(sessionId,"1");<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <o:p>聽</o:p> </span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>public static int getRealCount(){<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽聽聽聽聽 </span>return m_real.size();<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver"> <span style="mso-spacerun: yes">聽聽聽 </span>}<o:p></o:p></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span lang="EN-US" style="BACKGROUND: silver; mso-highlight: silver">}</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎴戜滑璁板綍浜嗕竴涓潤鎬佺殑</span> <span lang="EN-US">hash</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">琛ㄦ潵璁板綍嬋媧葷姸鎬佺殑</span> <span lang="EN-US">sessionid</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛屽茍鍦?/span> <span lang="EN-US">session</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閿姣佺殑鏃跺欏皢榪欎釜</span> <span lang="EN-US">sessionid</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">緗負絀恒?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎬庝箞鎶?/span> <span lang="EN-US">servlet</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閰嶇疆鍒?/span> <span lang="EN-US">web</span> <span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">搴旂敤涓垜灝變笉緗楀攩浜嗐?/span> </p> <img src ="http://www.tkk7.com/flyffa/aggbug/87722.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/flyffa/" target="_blank">flyffa</a> 2006-12-14 15:10 <a href="http://www.tkk7.com/flyffa/archive/2006/12/14/87722.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆愭湇鍔¢厤緗慳pache+tomcat閰嶇疆璐熻澆鍧囪 鐨勭綉绔?/title><link>http://www.tkk7.com/flyffa/archive/2006/11/06/79356.html</link><dc:creator>flyffa</dc:creator><author>flyffa</author><pubDate>Mon, 06 Nov 2006 03:49:00 GMT</pubDate><guid>http://www.tkk7.com/flyffa/archive/2006/11/06/79356.html</guid><wfw:comment>http://www.tkk7.com/flyffa/comments/79356.html</wfw:comment><comments>http://www.tkk7.com/flyffa/archive/2006/11/06/79356.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.tkk7.com/flyffa/comments/commentRss/79356.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/flyffa/services/trackbacks/79356.html</trackback:ping><description><![CDATA[     鎽樿: 鍦ㄧ綉涓婃壘浜嗕竴浜涙枃妗o紝榪樻槸瑙夊緱涓嶆槸寰堟竻妤氾紝鑷繁璧頒簡浜涘集璺紝鎵嶆妸榪欎釜閰嶇疆濂斤紝榪樻槸鍐欎笅鏉ュ惂錛屼互澶囧悗鏌ャ? 1.聽聽 鐩爣 浣跨敤 apache 鍜? tomcat 閰嶇疆涓涓彲浠ュ簲鐢ㄧ殑 web 緗戠珯錛岃杈懼埌浠ヤ笅瑕佹眰錛? ...  <a href='http://www.tkk7.com/flyffa/archive/2006/11/06/79356.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/flyffa/aggbug/79356.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/flyffa/" target="_blank">flyffa</a> 2006-11-06 11:49 <a href="http://www.tkk7.com/flyffa/archive/2006/11/06/79356.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Proxool榪炴帴姹犵殑綆鍗曢厤緗?/title><link>http://www.tkk7.com/flyffa/archive/2006/11/02/78639.html</link><dc:creator>flyffa</dc:creator><author>flyffa</author><pubDate>Thu, 02 Nov 2006 04:00:00 GMT</pubDate><guid>http://www.tkk7.com/flyffa/archive/2006/11/02/78639.html</guid><wfw:comment>http://www.tkk7.com/flyffa/comments/78639.html</wfw:comment><comments>http://www.tkk7.com/flyffa/archive/2006/11/02/78639.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.tkk7.com/flyffa/comments/commentRss/78639.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/flyffa/services/trackbacks/78639.html</trackback:ping><description><![CDATA[聽聽聽聽聽聽鑷繁浠ュ墠鍋氱▼搴忛兘鏄嚜宸卞啓榪炴帴姹狅紝閭d釜鏃跺欓」鐩ぇ錛岀幆澧冨悇寮傦紝涓轟簡渚夸簬瀹炴柦錛屾繪槸鐢辮嚜宸辮繘琛岃繛鎺ユ睜鐨勭鐞嗭紝絳夊埌鑷繁鎯沖仛涓浜涘皬涓滆タ鐨勬椂鍊欙紝鎵嶅彂鐜拌繖涓繛鎺ユ睜鎴愪簡涓涓笓鐢ㄧ殑涓滆タ錛屽拰緋葷粺鍋氫簡澶鐨勭粦瀹氾紝鍙兘鎵捐繛鎺ユ睜鐢紝鐢ㄨ繃resin鑷甫鐨勮繛鎺ユ睜錛屽啀鐢╰omcat榪炴帴姹犵殑鏃跺欏氨寰堜笉鐖斤紝娌℃湁鐩戞帶鐨勫姛鑳斤紝鍦ㄧ綉涓婇夋潵閫夊幓錛屾渶鍚庨夋嫨浜哖roxool銆?br /><br />聽聽聽聽聽聽Proxool榪炴帴姹犳槸sourceforge涓嬬殑涓涓紑婧愰」鐩?榪欎釜欏圭洰鎻愪緵涓涓仴澹佹槗鐢ㄧ殑榪炴帴姹狅紝鏈涓哄叧閿殑鏄繖涓繛鎺ユ睜鎻愪緵鐩戞帶鐨勫姛鑳斤紝鏂逛究鏄撶敤錛屼究浜庡彂鐜拌繛鎺ユ硠婕忕殑鎯呭喌銆傚紑婧愰」鐩湴鍧鏄細<a ><br />http://proxool.sourceforge.net/</a><br /><br />閰嶇疆榪炴帴姹犳瘮杈冪殑綆鍗曪細<br />1銆佸皢涓嬭澆鐨勫寘瑙e紑錛屼粠鍖呬腑鐨刲ib鐩綍涓嬪皢proxool-xxx.jar(xxx闅忕潃涓嶅悓鐨勭増鏈彿鍙樺寲)鍔犲叆浣犵殑宸ョ▼涓?br />2銆侀厤緗暟鎹簮錛?br />聽聽聽聽聽聽鍦╳eb-info涓嬪緩绔嬫枃浠訛細proxool.xml錛屾枃浠跺唴瀹瑰涓嬶細<br /><font style="BACKGROUND-COLOR: #d3d3d3"><font size="2"><?xml version="1.0" encoding="UTF-8"?><br /><something-else-entirely><br />聽 <proxool><br />聽聽聽 <alias>Develop</alias><br />聽聽聽 <driver-url>jdbc:mysql://localhost/kuanxue</driver-url><br />聽聽聽 <driver-class>com.mysql.jdbc.Driver</driver-class><br />聽聽聽 <driver-properties><br />聽聽聽聽聽 <property name="user" value="root"/><br />聽聽聽聽聽 <property name="password" value=""/><br />聽聽聽聽聽 <property name="useUnicode" value="true"/><br />聽聽聽聽聽 <property name="characterEncoding" value="GBK"/><br />聽聽聽 </driver-properties><br />聽聽聽 <maximum-connection-count>500</maximum-connection-count><br />聽聽聽 <house-keeping-test-sql>select CURRENT_DATE</house-keeping-test-sql><br />聽 </proxool><br />聽</something-else-entirely><br /></font><br /><font style="BACKGROUND-COLOR: #ffffff">3銆侀厤緗畐eb.xml<br />鍦╳eb.xml涓鍔狅細<br /><font style="BACKGROUND-COLOR: #d3d3d3" size="2"><!--聽閰嶇疆鍒濆鍖杝ervlet,鍦╳eb瀹瑰櫒鍔犺澆鐨勬椂鍊欒嚜鍔ㄥ姞杞介厤緗枃浠訛紝濡傛灉涓嶆槸web紼嬪簭錛岃繖涓儴鍒嗗氨闇瑕侀氳繃寮鍙戞帴鍙f潵鍒濆鍖栦簡 --><br /><servlet><br />聽聽聽聽 <servlet-name>proxoolInitialServlet</servlet-name><br />聽<servlet-class>org.logicalcobwebs.proxool.configuration.ServletConfigurator</servlet-class><br />聽聽聽聽 <init-param><br />聽聽聽聽聽聽 <param-name>xmlFile</param-name><br />聽聽聽聽聽聽 <param-value>WEB-INF/proxool.xml</param-value><br />聽聽聽聽 </init-param><br />聽聽聽聽 <load-on-startup>1</load-on-startup><br />聽聽 </servlet><br /><!--閰嶇疆鐩戞帶servlet,鍏跺疄濡傛灉涓嶆兂鐩戞帶鐨勮瘽錛屽彲浠ヤ笉閰?-><br />聽聽 <servlet><br />聽聽聽 <servlet-name>dbpoolAdmin</servlet-name><br />聽聽聽 <servlet-class>org.logicalcobwebs.proxool.admin.servlet.AdminServlet</servlet-class><br />聽 </servlet><br />聽聽 <servlet-mapping><br />聽聽聽 <servlet-name>dbpoolAdmin</servlet-name><br />聽聽聽 <url-pattern>/dbpool</url-pattern><br />聽 </servlet-mapping><br /></font><br /></font></font><font style="BACKGROUND-COLOR: #ffffff">4銆佸湪紼嬪簭涓皟鐢?br />涓鑸垜灝嗚幏鍙朿onnection鐨勮涓哄皝瑁呬負涓涓伐鍘傛ā寮忥紝渚夸簬澶氱鎯呭喌鐨勫垏鎹紝浠ヤ笅鏄叾涓璸roxool鏁版嵁婧愮殑getConnection鏂規硶鐨勫疄鐜幫細<br /><br /></font><font style="BACKGROUND-COLOR: #d3d3d3" size="2">public Connection getConnection() {<br />聽聽聽聽聽聽聽 try{<br />聽聽聽聽聽聽聽聽聽聽聽 Class.forName("org.logicalcobwebs.proxool.ProxoolDriver");<br />聽聽聽聽聽聽聽聽聽聽聽 return DriverManager.getConnection("proxool.Develop");<br />聽聽聽聽聽聽聽 }catch(Exception ex){<br />聽聽聽聽聽聽聽聽聽聽聽 ex.printStackTrace();<br />聽聽聽聽聽聽聽 }<br />聽聽聽聽聽聽聽 return null;<br />聽聽聽 }<br /><br /><font style="BACKGROUND-COLOR: #ffffff">5銆佸簲鐢ㄥ紑鍙戯細<br />聽聽聽聽聽聽鍦ㄥ疄闄呯殑搴旂敤涓紝鎴戜滑鍙兘闇瑕佹洿澶氱殑鍔熻兘錛屾瘮濡傜洃鎺у姛鑳戒笉澶熷己澶э紝鏉冮檺涓嶅ソ鎺у埗錛屾垜浠笇鏈涜兘澶熺紪鍐欏嚭鏇村己澶х殑鍔熻兘錛屾瘮濡傛潃姝諱竴浜涘ぇ鐨勬煡璇㈣鍙ョ瓑錛岃褰曞悇縐嶆煡璇㈣鍙ュ崰鐢ㄧ殑鏃墮棿錛岃繖灝遍渶瑕佸寮鍙戞帴鍙h繘琛岃繘涓姝ョ殑鐮旂┒浜嗐?br /></font></font><img src ="http://www.tkk7.com/flyffa/aggbug/78639.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/flyffa/" target="_blank">flyffa</a> 2006-11-02 12:00 <a href="http://www.tkk7.com/flyffa/archive/2006/11/02/78639.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://txtmp3.com" target="_blank">亚洲另类自拍丝袜第1页</a>| <a href="http://sczxzt.com" target="_blank">久久91亚洲人成电影网站</a>| <a href="http://wwwfafa98.com" target="_blank">亚洲中字慕日产2021</a>| <a href="http://yy468.com" target="_blank">3344免费播放观看视频</a>| <a href="http://shulan88.com" target="_blank">亚洲久本草在线中文字幕</a>| <a href="http://caita88.com" target="_blank">无码人妻AV免费一区二区三区</a>| <a href="http://yimintech.com" target="_blank">亚洲AV无码一区二区二三区入口 </a>| <a href="http://yese889.com" target="_blank">亚洲综合在线视频</a>| <a href="http://nit8.com" target="_blank">最近免费mv在线电影</a>| <a href="http://bjbanjia01.com" target="_blank">亚洲国产高清视频在线观看</a>| <a href="http://bbyy7.com" target="_blank">成人免费视频网址</a>| <a href="http://huafagz.com" target="_blank">特黄特色大片免费</a>| <a href="http://wivyswap.com" target="_blank">亚洲中文字幕无码久久精品1</a>| <a href="http://saob19.com" target="_blank">国精产品一区一区三区免费视频</a>| <a href="http://ywjh666.com" target="_blank">亚洲精品天天影视综合网</a>| <a href="http://w6626.com" target="_blank">国产va精品免费观看</a>| <a href="http://ivr69.com" target="_blank">爱爱帝国亚洲一区二区三区</a>| <a href="http://tltcn.com" target="_blank">亚洲中久无码不卡永久在线观看</a>| <a href="http://fdhkauto.com" target="_blank">在线免费视频你懂的</a>| <a href="http://jjesqc.com" target="_blank">亚洲午夜精品一区二区</a>| <a href="http://www33399.com" target="_blank">毛片免费在线观看网站</a>| <a href="http://yangguang882.com" target="_blank">羞羞视频免费网站含羞草</a>| <a href="http://ljdst.com" target="_blank">亚洲人成精品久久久久</a>| <a href="http://8099456.com" target="_blank">亚洲网站在线免费观看</a>| <a href="http://f4f8.com" target="_blank">亚洲AV无码片一区二区三区</a>| <a href="http://xuanzhicity.com" target="_blank">激情97综合亚洲色婷婷五</a>| <a href="http://html5text.com" target="_blank">最近免费中文字幕大全免费</a>| <a href="http://dqzlxgg.com" target="_blank">亚洲色大网站WWW永久网站</a>| <a href="http://9qwx.com" target="_blank">红杏亚洲影院一区二区三区</a>| <a href="http://740740740.com" target="_blank">91青青青国产在观免费影视</a>| <a href="http://zengzeyu.com" target="_blank">亚洲第一综合天堂另类专</a>| <a href="http://2xpp.com" target="_blank">亚洲午夜未满十八勿入网站2</a>| <a href="http://778002.com" target="_blank">日本人的色道免费网站</a>| <a href="http://bjycxy88.com" target="_blank">国产亚洲视频在线播放大全</a>| <a href="http://sewo66.com" target="_blank">亚洲伦理一区二区</a>| <a href="http://888-28.com" target="_blank">国产精品深夜福利免费观看</a>| <a href="http://yw323.com" target="_blank">99久在线国内在线播放免费观看</a>| <a href="http://wxxwy.com" target="_blank">人人狠狠综合久久亚洲</a>| <a href="http://yuduruizhi.com" target="_blank">亚洲视频免费在线看</a>| <a href="http://xxnxgay.com" target="_blank">亚洲一区视频在线播放</a>| <a href="http://952268.com" target="_blank">中文字幕人成无码免费视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>