锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av午夜成人片精品电影,亚洲第一永久在线观看,久久久无码精品亚洲日韩京东传媒http://m.tkk7.com/mstar/category/2359.html鎼炶蔣浠跺紑鍙戝氨鍍忚寮哄ジ,濡傛灉涓嶈兘鍙嶆姉,灝變韓鍙楀畠鍚э紒zh-cnTue, 27 Feb 2007 18:34:38 GMTTue, 27 Feb 2007 18:34:38 GMT60鐢―WR2.0鍋氱殑涓涓猄erver鏃ュ織鏌ョ湅鍣?/title><link>http://m.tkk7.com/mstar/archive/2007/01/03/Ajax_DWR2_LogViewer.html</link><dc:creator>榛戠伒</dc:creator><author>榛戠伒</author><pubDate>Wed, 03 Jan 2007 14:21:00 GMT</pubDate><guid>http://m.tkk7.com/mstar/archive/2007/01/03/Ajax_DWR2_LogViewer.html</guid><wfw:comment>http://m.tkk7.com/mstar/comments/91645.html</wfw:comment><comments>http://m.tkk7.com/mstar/archive/2007/01/03/Ajax_DWR2_LogViewer.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://m.tkk7.com/mstar/comments/commentRss/91645.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mstar/services/trackbacks/91645.html</trackback:ping><description><![CDATA[ <p>鏈夋椂鍊欐垜闇瑕佹煡鐪嬪凡緇忛儴緗插埌鏈嶅姟鍣ㄤ笂鐨勫簲鐢ㄧ▼搴忕殑鏃ュ織錛屾瘡嬈¢兘瑕佽繙紼嬬櫥褰曟湇鍔″櫒鎰熻寰堥夯鐑︼紝鎵浠ヤ竴鑸垜浼氭妸log鏂囦歡鐨勭洰褰曠敤apache鍋氫釜緗戠珯錛岃繖鏍烽氳繃IE灝卞彲浠ヨ闂埌浜嗐備絾鏄湁鏃惰鐪嬪嵆鏃惰緭鍑烘儏鍐碉紝灝辮涓嶆柇鐨凢5錛屽緢楹葷儲銆傛墍浠ュ氨鏈変釜鎯蟲硶錛屼笉濡傜敤DWR2.0鐨勫弽杞珹jax鏉ュ仛涓▼搴忥紝璁╂棩蹇楁湁鍙樺寲鏃惰嚜鍔ㄧ殑鍙戦佸埌瀹㈡埛绔紝榪欐牱灝辨垜涓涓姴鐨勬寜F5浜嗐?br /><br />鎴戜笅闈㈠氨鎶婅繖涓▼搴忓垎浜粰澶у錛屽笇鏈涘ぇ瀹舵彁鎻愭剰瑙併?br /><br />棣栧厛鏄幆澧冿細<br />DWR 2.0.rc1<br />Sun JDK 1.5<br /><br />鍏堢湅寮犺繍琛岃搗鏉ョ殑鍥懼惂錛屽ぇ瀹朵竴鐪嬪氨鐭ラ亾榪欐槸涓粈涔堜笢瑗夸簡銆?br /><img height="509" alt="logviewer.png" src="http://m.tkk7.com/images/blogjava_net/mstar/pics2007/logviewer.png" width="776" border="0" /><br />浣犲彲浠ュ埗瀹氳鐩戣鐨刲og鏂囦歡錛屽綋鐒舵湁鍝簺鏂囦歡鏂囦歡鍙互琚洃瑙嗭紝浣犲繀欏誨湪鏈嶅姟绔殑xml閰嶇疆涓枃浠惰緗紝褰撶劧浣犱篃鍙互鐩戣涓涓洰褰曢噷鐨刲og鏂囦歡錛岃繖瀵逛簬鑰宭og鏂囦歡鏄瘡澶╃敓鎴愪竴涓殑鎯呭喌寰堟湁鐢ㄣ備綘鍙互璁懼畾鍦ㄦ祻瑙堝櫒涓婃樉紺虹殑琛屾暟錛屾搷浣滆鏁幫紝灞忓箷浼氳嚜鍔ㄦ粴鍔ㄣ備綘榪樺彲浠ユ坊鍔犱竴浜涜繃婊ゅ櫒錛岃繃婊ゆ帀涓嶆兂鐪嬭鐨勮錛屾垜鐩墠鍙仛浜嗗埌浜嗚繃婊ゆ帀涓浜涗俊鎭紝褰撶劧濡傛灉浣犳湁鍏磋叮錛屼綘涔熷啀娣誨姞涓浜涙洿澶嶆潅鐨勮繃婊ゅ櫒銆傝繃婊ゅ櫒鐨勬ā寮忔槸鐢ㄦ鍒欒〃杈懼紡琛ㄧず鐨勩?br /><br />涓嬮潰鏄偣鍑燴滃紑濮嬬洃鍚濓紝榪愯鍚庢牱瀛?br /><img height="598" alt="logviewer2.png" src="http://m.tkk7.com/images/blogjava_net/mstar/pics2007/logviewer2.png" width="776" border="0" /><br />濡傛灉鏈嶅姟鍣ㄤ笂鐨刢atalina.2006-12-09.log鏂囦歡鍙戠敓鍙樺寲錛屽鎴風鐨勬祻瑙堝櫒涓妉og鏄劇ず鍖轟篃浼氳嚜鍔ㄧ殑鍚戜笂婊氬姩銆?br /><br /><br />涓嬮潰鎴戝氨澶ц嚧鐨勪粙緇嶄竴涓嬪浣曠敤DWR2.0鏉ュ疄鐜拌繖鏍風殑鍔熻兘銆傚湪榪欓噷浠嬬粛鐨勫彲鑳戒笉鏄緢璇︾粏錛屼笉娓呮鐨勫湴鏂硅鐪嬫垜鎻愪緵鐨勬簮鐮併?br /><br />鍏堟潵浠嬬粛涓涓嬬洰褰曠粨鏋?br />鈹溾攢lib聽 -- 緙栬瘧鍜屾祴璇曠敤鐨勭涓夋柟綾誨簱<br />鈹溾攢webapp -- 閮ㄧ講鐩綍<br />鈹溾攢test -- 嫻嬭瘯紼嬪簭<br />鈹溾攢java -- 涓葷▼搴?br />鈹斺攢build.xml -- ant鏋勫緩鏂囦歡<br /><br />webapp涓嬬殑鏂囦歡鍜岀洰褰?br />鈹偮?style.css聽 -- 鏍峰紡琛ㄦ枃浠?br />鈹偮?index.html -- 涓葷敾闈㈡枃浠?br />鈹?br />鈹溾攢WEB-INF<br />鈹偮?鈹偮?web.xml -- 閮ㄧ講閰嶇疆鏂囦歡<br />鈹偮?鈹偮?dwr.xml -- dwr鐨勯厤緗枃浠?br />鈹偮?鈹偮?conf.xml -- 鎴戜滑榪欎釜搴旂敤紼嬪簭閰嶇疆鏂囦歡錛屼富瑕佹槸閰嶇疆log鏂囦歡<br />鈹偮?鈹?br />鈹偮?鈹溾攢classes <br />鈹偮?鈹?br />鈹偮?鈹斺攢lib <br />鈹?br />鈹斺攢script -- javascript鏂囦歡<br /><br /><br />index.html涓氨鏄垜浠笂闈㈢殑鍥劇墖涓婅兘鐪嬪埌鐨勯〉闈㈠厓绱犮傚叾涓殑鎺т歡鐨勪簨浠跺鐞嗛兘鍐欏湪\script\logviewer.js鏂囦歡涓?br /></p> <p>褰撻〉闈㈠姞杞芥椂鎵цstartPoll()鏂規(guī)硶錛屽鏉傚紑濮嬩笌鏈嶅姟鍣ㄧ殑閫氫俊錛屽茍涓旀妸log鏂囦歡閫夋嫨妗嗗垵濮嬪寲錛屾妸宸茬粡娣誨姞榪囨護鍣ㄥ垪琛ㄦ樉紺哄嚭鏉ャ?</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">聽startPoll()聽{<br />聽聽聽聽DWREngine.setActiveReverseAjax(</span> <span style="COLOR: #0000ff">true</span> <span style="COLOR: #000000">);<br /><br />聽聽聽聽LogManager.getLogFileNames(</span> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">聽(data)聽{<br />聽聽聽聽聽聽聽聽DWRUtil.removeAllOptions(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">log_file</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽DWRUtil.addOptions(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">log_file</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,聽data);<br />聽聽聽聽});<br /><br />聽聽聽聽LogManager.getFilters(</span> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">(data)聽{<br />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">for</span> <span style="COLOR: #000000">聽(</span> <span style="COLOR: #0000ff">var</span> <span style="COLOR: #000000">聽i聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">0</span> <span style="COLOR: #000000">;聽i聽</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">聽data.length;聽i</span> <span style="COLOR: #000000">++</span> <span style="COLOR: #000000">)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽addFilterDiv(data[i].pattern,聽data[i].id);<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽});<br />}</span> </div> <p> <br />褰撶偣鍑燴滃紑濮嬬洃鍚濇寜閽椂璋冪敤鏈嶅姟绔殑LogManager鐨剆end鏂規(guī)硶錛屾湇鍔$寮鍚洃鍚嚎紼嬶紝寮濮嬬洃鍚仛涓哄弬鏁頒紶閫掔殑鏂囦歡錛屽鏋滄枃浠舵湁鍙樺姩灝變細鎶婃渶榪戝鍔犵殑琛屽彂閫佸埌嫻忚鍣ㄤ笂鏉ャ?<br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #0000ff">var</span> <span style="COLOR: #000000">聽startWatch聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">()聽{<br />聽聽聽聽clearLog();<br />聽聽聽聽LogManager.send(DWRUtil.getValue(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">log_file</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">));<br />}</span> </div> <p> <br /> </p> <p>褰撶偣鍑燴滅粨鏉熺洃鍚濇寜閽紝璋冪敤LogManager鐨剆top()鏂規(guī)硶錛岀粨鏉熸帀鐩戝惉綰跨▼銆?br /></p> <p> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">聽stopWatch()聽{<br />聽聽聽聽LogManager.stop();<br />}</span> </div> <p> </p> <p> <br />褰撶偣鍑燴滄竻絀烘棩蹇椻濇寜閽紝娓呴櫎mainPanel涓殑鎵鏈夊瓙鍏冪礌</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">聽clearLog()聽{<br />聽聽聽聽</span> <span style="COLOR: #0000ff">var</span> <span style="COLOR: #000000">聽mainPanel聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽$(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">main_panel</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">);<br />聽聽聽聽</span> <span style="COLOR: #0000ff">while</span> <span style="COLOR: #000000">聽(mainPanel.hasChildNodes())聽{<br />聽聽聽聽聽聽聽聽mainPanel.removeChild(mainPanel.firstChild);<br />聽聽聽聽}<br />}</span> </div> <p>褰撶偣鍑燴滄坊鍔犺繃婊ゅ櫒鈥濓紝濉厖杈撳叆妗嗭紝瑕佹眰杈撳叆鍋氫負榪囨護鍣ㄧ殑姝e垯琛ㄨ揪寮忥紝杈撳叆瀹屾垚鍚庯紝瑕佸仛涓や歡浜嬶細<br />1銆丩ogManager.addFilter鏂規(guī)硶錛屾妸杈撳叆鐨勬鍒欒〃杈懼紡浼犻佺粰鏈嶅姟绔?br />2銆佹妸榪欎釜姝e垯琛ㄨ揪寮忔坊鍔犲埌欏甸潰涓娿?/p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">聽addFilter()聽{<br />聽聽聽聽</span> <span style="COLOR: #0000ff">var</span> <span style="COLOR: #000000">聽regex聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽prompt(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">杈撳叆姝e垯琛ㄨ揪寮?/span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,聽</span> <span style="COLOR: #000000">""</span> <span style="COLOR: #000000">);<br />聽聽聽聽</span> <span style="COLOR: #0000ff">if</span> <span style="COLOR: #000000">聽(regex聽</span> <span style="COLOR: #000000">!=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">null</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">&&</span> <span style="COLOR: #000000">聽regex聽</span> <span style="COLOR: #000000">!=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">""</span> <span style="COLOR: #000000">)聽{<br />聽聽聽聽聽聽聽聽LogManager.addFilter(regex,聽</span> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">聽(filterId)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽addFilterDiv(regex,聽filterId);<br />聽聽聽聽聽聽聽聽});<br />聽聽聽聽}<br />}</span> </div>娉ㄦ剰榪欓噷錛屾垜浠敤鍒頒簡DWR鐨勫洖璋冩ā寮忥紝鍦ㄨ皟鐢ㄦ湇鍔$鏂規(guī)硶LogManager.addFilter鎴愬姛鍚庢垜浠墠璋冪敤瀹㈡埛绔殑addFilterDiv鏂規(guī)硶鎶婅繖涓緭鍏ョ殑姝e垯琛ㄨ揪寮忔樉紺哄埌欏甸潰涓娿?br /><br />濡傛灉浣犺凍澶熺粏蹇冪殑璇濓紝搴旇浼氬彂鐜板湪榪欎釜js鏂囦歡涓湁涓涓彨鍋歛ddNewLine鐨勬柟娉曞湪index.html涓槸娌℃湁琚皟鐢ㄧ殑銆傝繖涓柟娉曞叾瀹炴槸緇欐湇鍔$鐨凩ogManager.send鍑芥暟璋冪敤鐨勩?br /><br />涓婇潰榪欎簺鍐呭灝辨槸鏈嶅姟绔剼鏈殑涓昏鍐呭浜嗭紝鍏跺疄寰堢畝鍗曘備富瑕佽礋璐i氳繃DWR涓庢湇鍔$閫氫俊鍜屽鐞嗛〉闈㈡樉紺恒?br /><br />涓嬮潰浠嬬粛鏈嶅姟绔殑鏍稿績綾伙細LogManager<br /><br />榪欎釜綾諱富瑕佸氨榪欐牱鍑犱釜鏂規(guī)硶錛?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽鍋滄鐩戞帶<br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽stop()聽{<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(watcher聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽watcher.halt();<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽}<br /><br />聽聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽鍙戦乴og淇℃伅<br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽send(String聽filename)聽{<br />聽聽聽聽聽聽聽聽WebContext聽wctx聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽WebContextFactory.get();<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000">聽ScriptSession聽scriptSession聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽wctx.getScriptSession();<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(watcher聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽watcher.halt();<br />聽聽聽聽聽聽聽聽}<br /><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000">聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽watcher聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽LogFileWatcher(filename);<br />聽聽聽聽聽聽聽聽聽聽聽聽watcher.addListener(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽LogUpdateListener()聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽onLogUpdate(List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽lines)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">聽(String聽line聽:聽lines)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(checkFilters(line))聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ScriptBuffer聽scriptBuffer聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ScriptBuffer();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽scriptBuffer.appendScript(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">addNewLine(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.appendData(line)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.appendScript(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽scriptSession.addScript(scriptBuffer);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽});<br />聽聽聽聽聽聽聽聽聽聽聽聽watcher.start();<br />聽聽聽聽聽聽聽聽}聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">聽(IOException聽e)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽ScriptBuffer聽scriptBuffer聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ScriptBuffer();<br />聽聽聽聽聽聽聽聽聽聽聽聽scriptBuffer.appendScript(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">addNewLine(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.appendData(e.getMessage())<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.appendScript(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽聽聽scriptSession.addScript(scriptBuffer);<br />聽聽聽聽聽聽聽聽聽聽聽聽log.warn(e);<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽}<br /><br />聽聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽鍙栧緱鎸囧畾鐨勬棩蹇楁枃浠惰礬寰?br />聽聽聽聽聽*<br />聽聽聽聽聽*聽</span><span style="COLOR: #808080">@return</span><span style="COLOR: #008000">聽鎸囧畾鐨勬棩蹇楁枃浠惰礬寰?br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽getLogFileNames()聽{<br />聽聽聽聽聽聽聽聽List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽filenames聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ArrayList</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">();<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000">聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽XMLConfiguration聽config聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽getConfiguration();<br />聽聽聽聽聽聽聽聽聽聽聽聽List聽logfiles聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽config.getList(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">log-files.file</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">聽(Object聽o聽:聽logfiles)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽filenames.add((String)聽o);<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽}聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">聽(ConfigurationException聽e)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽log.warn(e);<br />聽聽聽聽聽聽聽聽}<br /><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽filenames;<br />聽聽聽聽}<br /><br />聽聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽鍙栧緱鎸囧畾鐨勬棩蹇楃洰褰曚笅鐨勬枃浠?br />聽聽聽聽聽*<br />聽聽聽聽聽*聽</span><span style="COLOR: #808080">@return</span><span style="COLOR: #008000">聽鎸囧畾鐨勬棩蹇楃洰褰曚笅鐨勬枃浠?br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽getLogFileNamesFromDir()聽{<br />聽聽聽聽聽聽聽聽List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽filenames聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ArrayList</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">();<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000">聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽XMLConfiguration聽config聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽getConfiguration();<br />聽聽聽聽聽聽聽聽聽聽聽聽String聽dir聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽config.getString(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">log-dir.dir</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(dir聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽File聽rootDir聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽File(dir);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(rootDir.exists())聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(rootDir.isFile())聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽filenames.add(rootDir.getPath().replace(</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\\</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">));<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(rootDir.isDirectory())聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽String聽patternString聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽config.getString(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">log-dir.filter</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽File[]聽files;<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(patternString聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">patternString.equals(</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">))聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽files聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽rootDir.listFiles(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽LogFileFilter(patternString));<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽files聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽rootDir.listFiles();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br /><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">聽(File聽file聽:聽files)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽filenames.add(file.getPath().replace(</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">\\</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">,聽</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">'</span><span style="COLOR: #000000">));<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽}聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">聽(ConfigurationException聽e)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽log.warn(e);<br />聽聽聽聽聽聽聽聽}<br /><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽filenames;<br />聽聽聽聽}<br /><br />聽聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽娣誨姞涓涓繃婊ゅ櫒錛岃繑鍥炶繃婊ゅ櫒鐨刬d<br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽addFilter(String聽regex)聽{<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">synchronized</span><span style="COLOR: #000000">聽(filters)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽Filter聽filter聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽Filter(regex,聽SequenceGenerator.getInstance().next(),聽FilterType.INCLUDE);<br />聽聽聽聽聽聽聽聽聽聽聽聽filters.add(filter);<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽filter.getId();<br />聽聽聽聽聽聽聽聽}<br /><br />聽聽聽聽}<br /><br />聽聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽鏍規(guī)嵁id鍒犻櫎涓涓繃婊ゅ櫒<br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽removeFilter(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽id)聽{<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">synchronized</span><span style="COLOR: #000000">聽(filters)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽filters.remove(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽Filter(id));<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽}<br /><br />聽聽聽聽</span><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br />聽聽聽聽聽*聽鍙栧緱鐜板湪鎵鏈夌殑榪囨護鍣ㄥ垪琛?br />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">Map</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String,聽Object</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">聽getFilters()聽{<br />聽聽聽聽聽聽聽聽List</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">Map</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String,聽Object</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">聽result聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽ArrayList</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">Map</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String,聽Object</span><span style="COLOR: #000000">>></span><span style="COLOR: #000000">();<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">synchronized</span><span style="COLOR: #000000">聽(filters)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">for</span><span style="COLOR: #000000">聽(Filter聽filter聽:聽filters)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Map</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String,聽Object</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">聽filterItem聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽HashMap</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">String,聽Object</span><span style="COLOR: #000000">></span><span style="COLOR: #000000">();<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽filterItem.put(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">id</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,聽filter.getId());<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽filterItem.put(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">pattern</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,聽filter.getPattern().pattern());<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽result.add(filterItem);<br />聽聽聽聽聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽result;<br />聽聽聽聽}</span></div><br />瀵逛簬澶у閮藉仛榪嘕ava鐨勬湅鍙嬫潵璇達紝榪欎簺浠g爜搴旇寰堝鏄撳氨鑳界湅鎳傦紝鎴戝氨涓嶅璇翠簡銆傚ぇ瀹朵富瑕佹敞鎰忎竴涓婼criptSession綾伙紝榪欎釜綾誨氨鏄搗鍒頒富瑕佸姛鑳界殑綾諱簡銆?br /><br />鍏朵腑鐨凩ogFileWatcher鏄竴涓猅hread綾伙紝瀹冩槸鐢ㄦ潵鐩戣log鏂囦歡鐨勩?br /><br />SequenceGenerator.java鏄敤鏉ョ敓鎴愯繃婊ゅ櫒鐨刬d鐨勩?br /><br />LogUpdateListener.java鏄竴涓帴鍙o紝鐢ㄤ簬瀹炵幇浜嬩歡鍥炶皟鐨勩?br /><br />鐒跺悗鐪嬩竴涓猟wr鐨勯厤緗枃浠?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">dwr</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">allow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">create聽</span><span style="COLOR: #ff0000">creator</span><span style="COLOR: #0000ff">="new"</span><span style="COLOR: #ff0000">聽javascript</span><span style="COLOR: #0000ff">="LogManager"</span><span style="COLOR: #ff0000">聽scope</span><span style="COLOR: #0000ff">="session"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param聽</span><span style="COLOR: #ff0000">name</span><span style="COLOR: #0000ff">="class"</span><span style="COLOR: #ff0000">聽value</span><span style="COLOR: #0000ff">="org.devside.logviewer.LogManager"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="send"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="stop"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="getLogFileNames"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="getLogFileNamesFromDir"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="addFilter"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="removeFilter"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">include聽</span><span style="COLOR: #ff0000">method</span><span style="COLOR: #0000ff">="getFilters"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">create</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">allow</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">dwr</span><span style="COLOR: #0000ff">></span></div><br />榪欓噷鐨勯厤緗枃浠跺拰1.x鍑犱箮娌′粈涔堜袱鏍鳳紝灝辨槸scope鎴戣繖閲岃緗垚浜唖ession鑼冨洿鐨勩傝繖鏍峰氨鍙互澶氫釜浜哄悓鏃剁洃瑙嗕笉鍚岀殑log鏂囦歡浜嗐?br /><br />web.xml鏂囦歡涔熷熀鏈笂鏄佹牱瀛?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #0000ff"><?</span><span style="COLOR: #ff00ff">xml聽version="1.0"聽encoding="UTF-8"</span><span style="COLOR: #0000ff">?></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">web-app聽</span><span style="COLOR: #ff0000">id</span><span style="COLOR: #0000ff">="LogViewer"</span><span style="COLOR: #ff0000">聽version</span><span style="COLOR: #0000ff">="2.4"</span><span style="COLOR: #ff0000"><br />聽聽聽聽聽聽聽聽聽xmlns</span><span style="COLOR: #0000ff">="http://java.sun.com/xml/ns/j2ee"</span><span style="COLOR: #ff0000"><br />聽聽聽聽聽聽聽聽聽xmlns:xsi</span><span style="COLOR: #0000ff">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="COLOR: #ff0000"><br />聽聽聽聽聽聽聽聽聽xsi:schemaLocation</span><span style="COLOR: #0000ff">="http://java.sun.com/xml/ns/j2ee聽http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">display-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">Web聽Log聽Viewer</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">display-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><br />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">description</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">Direct聽Web聽Remoter聽Servlet</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">description</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">display-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">DWR聽Servlet</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">display-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">dwr-invoker</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">org.directwebremoting.servlet.DwrServlet</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">debug</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">true</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">pollAndCometEnabled</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">true</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">1</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">load-on-startup</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><br />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-mapping</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">dwr-invoker</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">url-pattern</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">/dwr/*</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">url-pattern</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">servlet-mapping</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><br />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">welcome-file-list</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">welcome-file</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">index.html</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">welcome-file</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">welcome-file-list</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">web-app</span><span style="COLOR: #0000ff">></span></div>dwr鐨勫寘鍚嶅彂鐢熶簡鍙樺寲錛屽茍涓旇寮鍚弽杞琣jax錛屽氨瑕佹妸<span style="COLOR: #000000">pollAndCometEnabled鍙傛暟璁劇疆涓簍rue銆?br /><br />鎬葷粨錛屾諱綋鏉ヨDWR2.0涓殑鍙嶈漿ajax榪樻槸寰堝鏄撲嬌鐢ㄧ殑錛岃繖涔熸槸dwr鐨勪竴璐鏍鹼紝涓嶇敤鐭ラ亾榪囧鐨勭粏鑺傚氨鑳藉鏄撶殑瀹炵幇ajax銆俤wr緇濆鏄疛ava寮鍙戣呯殑棣栭塧jax妗嗘灦銆?br />鍙﹀鎴戣繖涓▼搴忓叾瀹炶繕鏄負浜嗘紨紺虹敤鐨勶紝濡傛灉鎯寵鐢ㄦ埛瀹為檯寮鍙戝彲鑳借繕闇瑕佷慨鏀癸紝姣斿瀹夊叏鎬т笂闈紝鎬ц兘涓婇潰銆傝屾ц兘涓婇潰鐨勪富瑕侀棶棰樻槸瀹㈡埛绔祻瑙堝櫒錛屽鏋滄湇鍔$鐨刲og鏂囦歡榪囧ぇ錛岃屾祻瑙堝櫒鏈変笉鑳藉嵆鏃剁殑鍥炴敹鍐呭瓨錛屽氨浼氶犳垚瀹㈡埛绔祻瑙堝櫒鍐呭瓨鍗犵敤榪囧ぇ鑰屾鎺夌殑闂銆傝屾湇鍔$鐢變簬java鐨勫唴瀹瑰洖鏀舵満鍒跺凡緇忔瘮杈冩垚鐔熷簲璇ヤ笉浼氭湁浠涔堥棶棰樸傛垜鍦╥e6鍜宖irefox2閮借瘯榪囦簡錛宖irefox鏁堟灉鑳藉ソ涓浜涖?br /><br />婧愮爜涓嬭澆錛?br /><a href="/Files/mstar/LogViewer.part1.rar">http://m.tkk7.com/Files/mstar/LogViewer.part1.rar</a><br /><a href="/Files/mstar/LogViewer.part2.rar">http://m.tkk7.com/Files/mstar/LogViewer.part2.rar</a></span><img src ="http://m.tkk7.com/mstar/aggbug/91645.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mstar/" target="_blank">榛戠伒</a> 2007-01-03 22:21 <a href="http://m.tkk7.com/mstar/archive/2007/01/03/Ajax_DWR2_LogViewer.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎶奃WR鐨勯厤緗啓鍒癝pring鐨勯厤緗枃浠墮噷錛圫pring2 鏂扮壒鎬?鑷畾涔塻chema鍒濅綋楠岋級 http://m.tkk7.com/mstar/archive/2006/11/16/81542.html榛戠伒榛戠伒Thu, 16 Nov 2006 07:50:00 GMThttp://m.tkk7.com/mstar/archive/2006/11/16/81542.htmlhttp://m.tkk7.com/mstar/comments/81542.htmlhttp://m.tkk7.com/mstar/archive/2006/11/16/81542.html#Feedback5http://m.tkk7.com/mstar/comments/commentRss/81542.htmlhttp://m.tkk7.com/mstar/services/trackbacks/81542.html浣犺鐭ラ亾Spring鏄粈涔堬紝騫朵笖瑕佺煡閬揝pring宸茬粡鍑轟簡2.0鐨勭増鏈簡銆?br />浣犺鐭ラ亾DWR鏄粈涔堬紝騫朵笖瑕佺煡閬揇WR涔熻鍑?.0鐨勭増鏈簡銆?br />
鍛靛懙錛屽紑涓帺絎戔︹︺傝繖騫村ご鍦˙logJava涓婃販鐨勶紝浼拌娌″嚑涓笉鐭ラ亾涓婇潰榪欎袱涓」浜嗐?br />
濂戒簡錛岀幇鍦ㄨ█褰掓浼犮侱WR鏈韓灝辨彁渚涘Spring鐨勬敮鎸侊紝鍙互鐩存帴鎶奡pring涓殑Bean鏆撮湶緇欏鎴風嫻忚鍣ㄧ殑Javascript璋冪敤銆傚湪dwr.xml涓殑鍐欐硶鏄繖鏍風殑錛?br />
<dwr>
聽聽聽聽
<allow>
聽聽聽聽聽聽聽聽
<create聽creator="spring"聽javascript="AjaxPortalService">
聽聽聽聽聽聽聽聽聽聽聽聽
<param聽name="beanName"聽value="AjaxPortalService"/>
聽聽聽聽聽聽聽聽聽聽聽聽
<include聽method="changeWondowState"/>
聽聽聽聽聽聽聽聽聽聽聽聽
<include聽method="changeWorkbenchState"/>
聽聽聽聽聽聽聽聽聽聽聽聽
<include聽method="changeWindowOrder"/>
聽聽聽聽聽聽聽聽
</create>
聽聽聽聽
</allow>
</dwr>

榪欐牱鍐欏埌涔熸病浠涔堬紝鍙槸鎶婇」鐩垎妯″潡浠ュ悗錛岃櫧鏈夌殑閰嶇疆閮藉啓鍒頒竴涓猟wr.xml鏂囦歡閲岄潰緇存姢璧鋒潵姣旇緝楹葷儲錛屽挨鍏跺啀閬囧埌鐗堟湰綆$悊涓殑浠g爜鍚堝茍銆傛墍浠ユ浘緇忔垜鎵╁睍浜咲WR錛岃瀹冨彲浠ヤ粠澶氫釜鏂囦歡璇誨彇閰嶇疆淇℃伅銆傜劧鍚庢瘡涓ā鍧楄嚜宸變竴涓厤緗枃浠訛紝璺熺潃source涓璧瘋蛋銆傝繖鏍峰仛涔熸湁闂錛屽氨鏄幇鍦↗ava搴旂敤紼嬪簭鐨勯厤緗枃浠跺お澶氬暒錛丼pring鐨勯厤緗紝WebWork鐨勯厤緗紝Hibernate鐨勯厤緗紝DWR鐨勯厤緗紝鍐嶅姞涓婁竴浜涙潅涓冩潅鍏殑xml鍜宲roperties銆傜湅鐫榪欎簺閰嶇疆鏂囦歡綆鐩磋鐤帀浜嗐?br />
姝e湪姝ゆ椂錛宻pring2妯┖鍑轟笘錛岀幇鍦ㄤ綘鍙互鎶婁竴浜涢厤緗枃浠跺悎騫跺埌涓璧蜂簡銆傛濂借秮姝ゆ満浼氫綋楠屼竴涓婼pring2鐨勮嚜瀹氫箟schema鐗規(guī)с?br />
鐩爣錛?br />鎶奃WR鐨勯厤緗啓鎴愯繖鏍鳳細
<?xml聽version="1.0"聽encoding="GBK"?>
<beans聽xmlns="http://www.springframework.org/schema/beans"
聽聽聽聽xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
聽聽聽聽xmlns:tx
="http://www.springframework.org/schema/tx"
聽聽聽聽xmlns:aop
="http://www.springframework.org/schema/aop"
聽聽聽聽xmlns:dwr
="http://www.devside.org/schema/spring/dwr"
聽聽聽聽xsi:schemaLocation
="http://www.springframework.org/schema/beans聽http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
聽聽聽聽聽聽聽聽聽聽聽http://www.springframework.org/schema/aop聽http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
聽聽聽聽聽聽聽聽聽聽聽http://www.springframework.org/schema/tx聽http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
聽聽聽聽聽聽聽聽聽聽聽http://www.devside.org/schema/spring/dwr聽http://www.devside.org/schema/spring/dwr.xsd"

聽聽聽聽default-autowire
="byName">
聽聽聽聽
聽聽聽聽
<bean聽id="departmentDao"聽class="cn.com.legendapl.hellostruts2.dao.DepartmentDao"/>
聽聽聽聽
<bean聽id="employeeDao"聽class="cn.com.legendapl.hellostruts2.dao.EmployeeDao"/>
聽聽聽聽
<bean聽id="companyService"聽class="cn.com.legendapl.hellostruts2.service.CompanyService"/>
聽聽聽聽
聽聽聽聽
<aop:config>
聽聽聽聽聽聽聽聽
<aop:pointcut聽id="companyServiceOperation"聽expression="execution(*聽cn.com.legendapl.hellostruts2.service.ICompanyService.*(..))"/>
聽聽聽聽聽聽聽聽
<aop:advisor聽advice-ref="txAdvice"聽pointcut-ref="companyServiceOperation"/>
聽聽聽聽
</aop:config>聽聽聽聽
聽聽聽聽
聽聽聽聽
<bean聽id="ajaxCompanyProxy"聽class="cn.com.legendapl.hellostruts2.ajax.AjaxCompanyProxy"/>
聽聽聽聽
聽聽聽聽
<dwr:allow聽id="ajaxCompanyProxyAllow">
聽聽聽聽聽聽聽聽
<dwr:create聽beanName="ajaxCompanyProxy"聽javascript="CompanyProxy">
聽聽聽聽聽聽聽聽聽聽聽聽
<dwr:include聽method="findEmployeeById"/>
聽聽聽聽聽聽聽聽
</dwr:create>
聽聽聽聽聽聽聽聽
<dwr:convert聽converter="bean"聽match="cn.com.legendapl.hellostruts2.entity.*"/>
聽聽聽聽
</dwr:allow>
</beans>


閲嶇偣鍦ㄨ繖閲岋細
聽聽聽聽<dwr:allow聽id="ajaxCompanyProxyAllow">
聽聽聽聽聽聽聽聽
<dwr:create聽beanName="ajaxCompanyProxy"聽javascript="CompanyProxy">
聽聽聽聽聽聽聽聽聽聽聽聽
<dwr:include聽method="findEmployeeById"/>
聽聽聽聽聽聽聽聽
</dwr:create>
聽聽聽聽聽聽聽聽
<dwr:convert聽converter="bean"聽match="cn.com.legendapl.hellostruts2.entity.*"/>
聽聽聽聽
</dwr:allow>

濂戒簡鐜板湪鍔ㄦ墜寮濮嬪仛銆?br />
鍘熺悊鍏跺疄寰堢畝鍗曪紝鐜板湪鐪嬪紶鍥俱傜敾鐨勪笉濂斤紝鏁鍘熻皡錛?br />


spring-dwr.png

浠庤繖鏍峰浘涓垜浠彲浠ョ湅鍑烘垜浠鍋氬涓嬪伐浣滐細
1銆佸仛涓涓猟wr.xsd錛屽畾涔塻pring閰嶇疆鏂囦歡涓殑dwr榪欓儴鍒嗛厤緗殑schema銆?br />聽聽聽瑕佸仛榪欎釜闇瑕佹湁涓瀹歺ml鍜寈sd鐨勭煡璇嗭紝鎴戜篃鏄幇瀛︾幇鐢ㄥ暒錛?br />

<?xml聽version="1.0"聽encoding="UTF-8"?>
<xsd:schema聽xmlns="http://www.devside.org/schema/spring/dwr"
聽聽聽聽xmlns:xsd
="http://www.w3.org/2001/XMLSchema"
聽聽聽聽xmlns:beans
="http://www.springframework.org/schema/beans"
聽聽聽聽targetNamespace
="http://www.devside.org/schema/spring/dwr"
聽聽聽聽elementFormDefault
="qualified"聽聽聽聽
聽聽聽聽attributeFormDefault
="unqualified">

聽聽聽聽
<xsd:import聽namespace="http://www.springframework.org/schema/beans"聽schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"/>
聽聽聽聽
聽聽聽聽
<xsd:element聽name="allow">
聽聽聽聽聽聽聽聽
<xsd:complexType>
聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:complexContent>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:extension聽base="beans:identifiedType">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:sequence>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:element聽name="create"聽type="createType"聽minOccurs="0"聽maxOccurs="unbounded"/>聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:element聽name="convert"聽type="convertType"聽minOccurs="0"聽maxOccurs="unbounded"/>聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</xsd:sequence>聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</xsd:extension>
聽聽聽聽聽聽聽聽聽聽聽聽
</xsd:complexContent>
聽聽聽聽聽聽聽聽
</xsd:complexType>
聽聽聽聽
</xsd:element>聽聽聽聽
聽聽聽聽
<xsd:complexType聽name="createType">聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
<xsd:sequence>
聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:element聽name="auth"聽type="authType"聽minOccurs="0"聽maxOccurs="unbounded"/>
聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:element聽name="include"聽type="includeType"聽minOccurs="0"聽maxOccurs="unbounded"/>
聽聽聽聽聽聽聽聽聽聽聽聽
<xsd:element聽name="exclude"聽type="excludeType"聽minOccurs="0"聽maxOccurs="unbounded"/>聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
</xsd:sequence>
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="beanName"聽type="xsd:string"聽use="required"/>
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="javascript"聽type="xsd:string"聽use="required"/>聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽
</xsd:complexType>聽聽聽
聽聽聽聽
聽聽聽聽
<xsd:complexType聽name="convertType">
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="converter"聽type="xsd:string"聽use="required"/>
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="match"聽type="xsd:string"聽use="required"/>
聽聽聽聽
</xsd:complexType>聽聽
聽聽聽聽
聽聽聽聽
<xsd:complexType聽name="authType">
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="method"聽type="xsd:string"聽use="required"/>
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="role"聽type="xsd:string"聽use="required"/>
聽聽聽聽
</xsd:complexType>
聽聽聽聽
<xsd:complexType聽name="includeType">
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="method"聽type="xsd:string"聽use="required"/>
聽聽聽聽
</xsd:complexType>
聽聽聽聽
<xsd:complexType聽name="excludeType">
聽聽聽聽聽聽聽聽
<xsd:attribute聽name="method"聽type="xsd:string"聽use="required"/>
聽聽聽聽
</xsd:complexType>
</xsd:schema>

2銆佹垜浠鍋氫竴涓狣WRNamespaceHandler鏉ュ鐞咲WR鐨勯厤緗俊鎭紝鍏跺疄閲岄潰灝卞仛涓浠朵簨鎶夾llowBeanDefinitionParser娉ㄥ唽緇檃llow鑺傜偣銆傚洜涓烘垜浠琩wr鐨勯厤緗儴鍒嗘牴鑺傜偣灝變竴涓爣絳綼llow錛屾墍浠ユ垜浠氨鍋氫竴涓敤浜庤В鏋恆llow鏍囩鐨凙llowBeanDefinitionParser瑙f瀽鍣ㄥ氨琛屻傚鏋滄垜浠殑鏍硅妭鐐硅繕鏈夊叾浠栫殑鏍囩錛屽悓鏍蜂篃瑕佸仛鐩稿簲鐨勮В鏋愬櫒銆?br />

publicclass聽DWRNamespaceHandler聽extends聽NamespaceHandlerSupport聽{

聽聽聽聽
publicvoid聽init()聽{
聽聽聽聽聽聽聽聽
//鎶夾llowBeanDefinitionParser娉ㄥ唽鍒癮llow鑺傜偣
聽聽聽聽聽聽聽聽registerBeanDefinitionParser("allow",聽new聽AllowBeanDefinitionParser());
聽聽聽聽}

}

鍏跺疄闅劇偣鏄仛AllowBeanDefinitionParser錛岃繖閲屼綘闇瑕佷竴浜汥OM妯″瀷鐨勭煡璇嗭紝鏉ユ搷浣滈厤緗妭鐐圭殑鍐呭銆傜劧鍚庢牴鎹唴瀹硅繘琛屽鐞嗐傚湪榪欓噷鎴戜滑錛岄渶瑕佸仛涓変歡浜嬶細
聽聽 [1]聽 鎶婇厤緗妭鐐圭殑鍐呭杞崲鎴愬璞℃ā鍨嬶紝鍗矨llowBean錛堝叾瀹炲氨鏄竴浜汸OJO緗簡錛夈?br />聽聽 [2]聽 鎶婅繖涓狝llowBean娉ㄥ唽緇橲pring鐨凜ontext錛岃繖涓姝ユ槸鍙夌殑銆傚洜涓烘垜浠富瑕佹槸鎶婅繖涓狟ean緇橠WR錛屽綋鐒墮『閬撶粰Spring涓浠戒篃娌′粈涔堥棶棰樸?br />聽聽 [3] 鎶婅繖涓狝llowBean娉ㄥ唽鍒癆llowBeanHolder銆?br />
3銆丄llowBeanHolder銆?br />聽聽聽鍏跺疄榪欏氨鏄釜綆鍗曠殑singleton綾伙紝鏁翠釜榪愯鏈熷彧鏈変竴涓疄渚嬨傚畠?yōu)鍍忎竴涓鍣紝AllowBeanDefinitionParser寰閲屾斁錛孌WR鐨凜onfiguration鍐嶄粠榪欓噷鍙栥?br />
4銆佹墿灞旸WR鐨凞efaultConfiguration錛屾垜浠仛涓涓猄pringConfiguration銆侱WR鐨凞efaultConfiguration鏄礋璐h鍙栭厤緗俊鎭殑銆傛垜浠湪鍏朵腑鍔犲叆浠嶢llowBeanHolder璇誨彇閰嶇疆淇℃伅鐨勫姛鑳藉嵆鍙?br />
5銆佹墿灞旸WR鐨凞WRServlet錛屾垜浠仛涓涓猄pringDWRServlet錛屽師鏉ョ殑DWRServlet鍔犺澆鐨勬槸DefaultConfiguration錛屾垜浠殑Serlvet鍔犺澆鎴戜滑鑷繁鐨凷pringConfiguration鍗沖彲銆?br />
6銆佷竾浜嬩勘澶囷紝鍙瑺涓滈鍟︺傚氨鏄Spring鐭ラ亾鎴戜滑騫蹭簡榪欎簺錛?br />聽聽聽鍦∕ETA-INF鐩綍涓嬶紙濡傛灉娌℃湁鍦╯rc鐩綍涓嬪垱寤轟竴涓級鍔犲叆spring.handlers鍜宻pring.schemas涓や釜鏂囦歡銆?br />聽聽聽spring.handlers涓殑鍐呭錛?br />聽聽聽http\://www.devside.org/schema/spring/dwr=org.devside.core.support.dwr.DWRNamespaceHandler
聽聽聽spring.schemas涓殑鍐呭錛?br />聽聽 http\://www.devside.org/schema/spring/dwr.xsd=org/devside/core/support/dwr/dwr.xsd
聽聽聽
聽聽
娉ㄦ剰涓嶈鍐欓敊瀛楀摝錛屾垜涓寮濮嬪氨鍐欓敊涓涓瓧姣嶏紝緇撴灉鎬庝箞璋冭瘯閮戒笉鑳芥垚鍔燂紝榪樹互涓篠pring2鏈夐棶棰樺憿銆?br />
ok浜嗭紝涓嬮潰鎴戜滑灝卞彲浠ュ啓涓涓猻pring鐨勯厤緗枃浠舵潵璇曡瘯鍠姐?br />
涓嬮潰鎻愪緵涓や釜婧愮爜鍖咃紝涓涓槸spring-dwr鐨勬簮鐮侊紝涓涓槸hellosturts2錛屼竴涓猻truts2+spring2+hibernate3.2鐨勪緥瀛愶紝鍏朵腑鏈夌敤鍒皊pring-dwr鐨勪緥瀛愩?br />
涓轟簡鍑忓皬瀹歸噺錛屾垜鎶妀ar閮藉幓鎺変簡錛宭ib鐩綍涓嬫彁渚涗簡涓涓垪琛紝浣犲彲浠ヨ嚜宸卞幓鎵劇浉鍏崇殑jar鍖呫?br />
http://m.tkk7.com/Files/mstar/HelloStruts2.zip

http://m.tkk7.com/Files/mstar/spring-dwr.zip


榛戠伒 2006-11-16 15:50 鍙戣〃璇勮
]]>
dwr綆浠?-涓涓緥瀛?緇簩) http://m.tkk7.com/mstar/archive/2005/08/09/9674.html榛戠伒榛戠伒Tue, 09 Aug 2005 09:56:00 GMThttp://m.tkk7.com/mstar/archive/2005/08/09/9674.htmlhttp://m.tkk7.com/mstar/comments/9674.htmlhttp://m.tkk7.com/mstar/archive/2005/08/09/9674.html#Feedback5http://m.tkk7.com/mstar/comments/commentRss/9674.htmlhttp://m.tkk7.com/mstar/services/trackbacks/9674.html闃呰鍏ㄦ枃

榛戠伒 2005-08-09 17:56 鍙戣〃璇勮
]]>
dwr綆浠?-涓涓緥瀛?緇?http://m.tkk7.com/mstar/archive/2005/08/09/9673.html榛戠伒榛戠伒Tue, 09 Aug 2005 09:34:00 GMThttp://m.tkk7.com/mstar/archive/2005/08/09/9673.htmlhttp://m.tkk7.com/mstar/comments/9673.htmlhttp://m.tkk7.com/mstar/archive/2005/08/09/9673.html#Feedback5http://m.tkk7.com/mstar/comments/commentRss/9673.htmlhttp://m.tkk7.com/mstar/services/trackbacks/9673.html闃呰鍏ㄦ枃

榛戠伒 2005-08-09 17:34 鍙戣〃璇勮
]]>
dwr綆浠?-涓涓緥瀛?/title><link>http://m.tkk7.com/mstar/archive/2005/08/08/9566.html</link><dc:creator>榛戠伒</dc:creator><author>榛戠伒</author><pubDate>Mon, 08 Aug 2005 05:58:00 GMT</pubDate><guid>http://m.tkk7.com/mstar/archive/2005/08/08/9566.html</guid><wfw:comment>http://m.tkk7.com/mstar/comments/9566.html</wfw:comment><comments>http://m.tkk7.com/mstar/archive/2005/08/08/9566.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://m.tkk7.com/mstar/comments/commentRss/9566.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mstar/services/trackbacks/9566.html</trackback:ping><description><![CDATA[     鎽樿: 涓婁竴綃囨垜涓昏浠嬬粛dwr鐨勬鍐點傝繖涓綃囨垜鐢╠wr鍋氫簡涓彲浠ヤ笉鍒鋒柊欏甸潰灝辨洿鏂扮殑琛ㄦ牸銆傝繍琛岀幆澧冿細windows xp pro sp2j2sdk1.2.4_03weblogic8.1struts1.2.4寮鍙戝伐鍏積clipse3.0鍏跺疄dwr鍜宻truts娌℃湁浠涔堝叧緋伙紝鍙笉榪囨渶榪戞垜浠」鐩粍鍦ㄧ敤struts浣滀笢瑗褲傛垜灝遍『渚跨敤鎶婃垜鐨勭▼搴忓緩绔嬪湪Struts涓娿備富瑕佹枃浠躲俤wr.jar--dwr鐨勭被搴撳寘strut...  <a href='http://m.tkk7.com/mstar/archive/2005/08/08/9566.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/mstar/aggbug/9566.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mstar/" target="_blank">榛戠伒</a> 2005-08-08 13:58 <a href="http://m.tkk7.com/mstar/archive/2005/08/08/9566.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>dwr綆浠?/title><link>http://m.tkk7.com/mstar/archive/2005/08/08/9561.html</link><dc:creator>榛戠伒</dc:creator><author>榛戠伒</author><pubDate>Mon, 08 Aug 2005 05:26:00 GMT</pubDate><guid>http://m.tkk7.com/mstar/archive/2005/08/08/9561.html</guid><wfw:comment>http://m.tkk7.com/mstar/comments/9561.html</wfw:comment><comments>http://m.tkk7.com/mstar/archive/2005/08/08/9561.html#Feedback</comments><slash:comments>11</slash:comments><wfw:commentRss>http://m.tkk7.com/mstar/comments/commentRss/9561.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/mstar/services/trackbacks/9561.html</trackback:ping><description><![CDATA[<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>Ajax</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">姣旇緝鐏紝鍏ㄤ笘鐣岄兘鍦ㄨ璁恒備簬鏄垜涔熸幒鍜屾幒鍜岋紝鐩存帴鐢?/SPAN><SPAN lang=EN-US>XMLHttpRequest</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>Echo2</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎴栬?/SPAN><SPAN lang=EN-US>backbase</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>Ajax</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨?/SPAN><SPAN lang=EN-US>framework</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">澶噸閲忕駭浜嗐傛垜瑕佺殑鍙槸涓浜涚畝鍗曠殑搴旂敤鑰屽凡銆備簬鏄瑙呯殑閲嶇偣鏀懼湪浜嗕竴浜涘</SPAN><SPAN lang=EN-US>xmlhttpRequest</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪涜杞婚噺綰у寘瑁呯殑浠g爜搴撲笂浜嗐備簬鏄垜鎵懼埌浜?/SPAN><SPAN lang=EN-US>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/SPAN><SPAN lang=EN-US>Direct Web Remoting</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛夈?/SPAN><SPAN lang=EN-US>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勫彛鍙鋒槸</SPAN><SPAN lang=EN-US>AJAX and XMLHttpRequest made easy</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛屽茍涓斿畠涔熷熀鏈笂鍋氬埌浜嗚繖涓鐐廣傚畠鎻愪緵浜嗕竴涓弸濂界殑妗嗘灦鍜屼竴浜涘緢鏈夌敤鐨?/SPAN><SPAN lang=EN-US>JavaScript</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">搴擄紝鍙互璁╂垜鐢ㄨ搗</SPAN><SPAN lang=EN-US>Ajax</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏇村鏄撲簺銆傝緇嗙殑淇℃伅鍙互鍒頒粬浠殑緗戠珯</SPAN><SPAN lang=EN-US><A >http://www.getahead.ltd.uk/dwr/</A></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">銆傞『渚垮湪浠嬬粛涓涓綉绔欏惂錛?/SPAN><SPAN lang=EN-US><A >http://www.ajaxmatters.com</A> </SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欓噷涔熸湁寰堝鍏充簬</SPAN><SPAN lang=EN-US>Ajax</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><?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 style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓嬮潰鏉ョ畝鍗曚粙緇嶄竴涓?/SPAN><SPAN lang=EN-US>DWR</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 style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍏跺疄鍦ㄦ病鏈?/SPAN><SPAN lang=EN-US>XMLHttpRequest</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍓?/SPAN><SPAN lang=EN-US>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灝辨湁浜嗭紝閭f椂瀹冪敤鐨勬槸</SPAN><SPAN lang=EN-US>IFrame</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛屾晥鏋滃緢宸紝鎵浠ユ垜鐪嬬湅浜嗗氨娌℃湁鍐?/SPAN><SPAN lang=EN-US>diao</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀹冦傜幇鍦ㄧ殑</SPAN><SPAN lang=EN-US>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓昏鐢?/SPAN><SPAN lang=EN-US>XMLHttpRequest</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛屽綋鐒朵篃鍙互閫夎呯敤</SPAN><SPAN lang=EN-US>IFrame</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>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏄釜</SPAN><SPAN lang=EN-US>open source software</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="COLOR: #666666; FONT-FAMILY: Verdana"><A ><SPAN style="COLOR: #9a1414; TEXT-DECORATION: none; text-underline: none">ASL version 2.0</SPAN></A></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勩傜幇鍦ㄧ綉绔欎笂</SPAN><SPAN lang=EN-US>examples and tutorials</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 style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐜板湪</SPAN><SPAN lang=EN-US>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勬渶鏂扮増鏈槸</SPAN><SPAN lang=EN-US>1.0RC1</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>DWR</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏈韓浠ヤ竴涓?/SPAN><SPAN lang=EN-US>dwr.jar</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨?/SPAN><SPAN lang=EN-US>jar</SPAN><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>uk.ltd.getahead.dwr.DWRServlet</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><A >http://www.getahead.ltd.uk/dwr/intro.html</A></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">銆傛瘮杈冪畝鍗曘?/SPAN><SPAN lang=EN-US>dwr</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓烘垜浠彁渚涗簡涓涓?/SPAN><SPAN lang=EN-US>framework</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">甯垜浠緢瀹規(guī)槗鐨勫疄鐜?/SPAN><SPAN lang=EN-US>JavaScript</SPAN><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></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana"><IMG height=281 alt=howitworks.png src="http://m.tkk7.com/images/blogjava_net/mstar/pics/howitworks.png" width=521 border=0><BR><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>鎴戣繕娌℃湁鐪嬭繃</FONT></SPAN><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">dwr</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鐨勬簮鐮侊紝鍏蜂綋浠栨槸鎬庝箞瀹炵幇鐨勬垜涔熶笉澶竻妤氥備絾澶ц嚧涓婅偗瀹氭槸閫氳繃</SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">xmlhttprequest</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鏉ヨ皟鐢ㄥ畠鐨?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">servlet</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鐒跺悗鎶婃暟鎹敤</SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">xml</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鎵撳寘瑙e寘浜嗐傚叾瀹炴垜瑙夊緱榪欓儴鍒嗗埌涓嶆槸</SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">dwr</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">緇欐垜甯︽潵鐨勬渶鏂逛究鐨勫湴鏂廣傛渶鏂逛究鐨勫湴鏂瑰簲璇ユ槸浠栫殑閭d簺</SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">js</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鐨勫簱銆?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鎵浠ヤ笅闈㈡垜瑕佷粙緇嶄竴涓嬪畠鐨勪袱涓噸瑕?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">js</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">瀵硅薄銆?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">DWREngine </SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">錛?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">engine.js</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">涓級錛?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">DWRUtil (util.js</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">涓?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">)</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">銆?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">DWREngine</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">涓殑鏂規(guī)硶鏄熀鏈笂鏄叧浜?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana">XMLHttpRequest</SPAN><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">鐨勩?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">涓嬮潰涓粙緇嶄竴浜?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff">DWREngine.setErrorHandler(handler)<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">榛樿鐨勯敊璇鐞嗘椂寮瑰嚭涓涓璇濇錛屼綘鍙互閫氳繃榪欎釜鏂規(guī)硶鏀瑰彉鎴愪綘闇瑕佺殑琛ㄧ幇褰㈠紡銆?/SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><FONT color=#000000><FONT style="BACKGROUND-COLOR: #ffffff">DWREngine.setWarningHandler(handler)<o:p></o:p></FONT></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="COLOR: #666666; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>鏀瑰彉榛樿鐨勮鍛婂鐞嗗艦寮?/FONT></SPAN><SPAN lang=EN-US style="COLOR: #666666; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>DWREngine.beginBatch()</SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>Some Remote Function鈥?/SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US>DWREngine.endBatch()</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'">褰撲綘鏈夊嚑涓繙紼嬭皟鐢ㄨ涓璧瘋繘琛屾椂錛屽氨瑕佺敤鍒拌繖涓や釜鏂規(guī)硶銆?/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>DWREngine</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓繕鏈変竴浜涘叾瀹冪殑鏂規(guī)硶錛屾垜娌℃湁鐢ㄨ繃銆備綘鍙互閫氳繃</SPAN><SPAN lang=EN-US>dwr</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨?/SPAN><SPAN lang=EN-US>js-doc</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏉ョ湅銆傚鏋滈氳繃鏂囨。鐪嬩笉鎳傚畠鏄共浠涔堢敤鐨勶紝灝辯湅</SPAN><SPAN lang=EN-US>js</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>DWRUtil</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓篃鏈変竴浜涘緢鏈夌敤鐨勬柟娉曘傝繖浜涙柟娉曚竴鑸槸緙栧啓</SPAN><SPAN lang=EN-US>js</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 style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">姣斿</SPAN><SPAN lang=EN-US>setValue</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍜?/SPAN><SPAN lang=EN-US>getValue</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">銆傚ぇ澶氭暟</SPAN><SPAN lang=EN-US>html</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏍囩鏈?/SPAN><SPAN lang=EN-US>value</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灞炴э紝榪欐椂浣犺鑾峰彇鎴栬呰緗畠鐨勫兼椂灝辯敤</SPAN><SPAN lang=EN-US>$(鈥渟omeid鈥?.value</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灝卞彲浠ヤ簡銆備絾鏄湁浜?/SPAN><SPAN lang=EN-US>html</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏍囪鏄病鏈?/SPAN><SPAN lang=EN-US>value</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灞炴х殑錛屽畠鐨勫兼椂鍦ㄦ爣絳劇殑涓棿錛屽</SPAN><SPAN lang=EN-US><span id=鈥漵pan<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:chmetcnv UnitName="鈥? SourceValue="1" HasSpace="False" Negative="False" NumberType="1" TCSC="0" w:st="on">1鈥?/st1:chmetcnv>>some value</span></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欐椂浣犺鍙栨垨璁懼畠鐨勫肩殑鏃跺欏氨鐢?/SPAN><SPAN lang=EN-US>DWRUtil.setValue($(鈥渟pan1鈥?</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛?/SPAN><SPAN lang=EN-US>someValue)</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 style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪樻湁寰堝寰堝ソ鐢ㄧ殑鏂規(guī)硶錛?/SPAN><SPAN lang=EN-US>dwr</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>Dwr</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灝變粙緇嶅埌榪欓噷鍚с備笅涓綃囷紝鎴戝仛浜嗕釜</SPAN><SPAN lang=EN-US>table</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勪緥瀛愩?BR><IMG style="WIDTH: 686px; HEIGHT: 618px" height=618 alt=screen.jpg src="http://m.tkk7.com/images/blogjava_net/mstar/pics/screen.jpg" width=802 border=0></SPAN></P><img src ="http://m.tkk7.com/mstar/aggbug/9561.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/mstar/" target="_blank">榛戠伒</a> 2005-08-08 13:26 <a href="http://m.tkk7.com/mstar/archive/2005/08/08/9561.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://www42iii.com" target="_blank">亚洲一区免费观看</a>| <a href="http://100357.com" target="_blank">羞羞视频免费网站入口</a>| <a href="http://2002tw.com" target="_blank">亚洲色少妇熟女11p</a>| <a href="http://222xx8.com" target="_blank">1000部拍拍拍18免费网站</a>| <a href="http://zhaofeiz.com" target="_blank">性做久久久久免费观看</a>| <a href="http://www-yhty.com" target="_blank">亚洲一区二区无码偷拍</a>| <a href="http://wwwxue1888.com" target="_blank">中文字幕无码视频手机免费看</a>| <a href="http://zgbeian.com" target="_blank">中文字幕专区在线亚洲</a>| <a href="http://xianfeng-motor.com" target="_blank">草久免费在线观看网站</a>| <a href="http://holdengong.com" target="_blank">久久影视综合亚洲</a>| <a href="http://zgj688.com" target="_blank">97无码人妻福利免费公开在线视频 </a>| <a href="http://maomaots.com" target="_blank">亚洲国产成人久久笫一页</a>| <a href="http://leeszewan.com" target="_blank">男男gvh肉在线观看免费</a>| <a href="http://zj1069.com" target="_blank">成人免费的性色视频</a>| <a href="http://xyzch.com" target="_blank">亚洲 欧洲 自拍 另类 校园</a>| <a href="http://zhongxueping888.com" target="_blank">久久不见久久见中文字幕免费 </a>| <a href="http://cnlawedu.com" target="_blank">免费看少妇作爱视频</a>| <a href="http://gachi1151.com" target="_blank">久久亚洲精品无码VA大香大香</a>| <a href="http://6006769.com" target="_blank">污污污视频在线免费观看</a>| <a href="http://dfcnpc.com" target="_blank">国产成人亚洲精品91专区手机</a>| <a href="http://77133144.com" target="_blank">亚洲三级高清免费</a>| <a href="http://kmrghj.com" target="_blank">日韩免费无码一区二区视频</a>| <a href="http://726zh.com" target="_blank">暖暖免费中文在线日本</a>| <a href="http://18eeuus.com" target="_blank">亚洲午夜福利AV一区二区无码</a>| <a href="http://paweax.com" target="_blank">久久成人免费播放网站</a>| <a href="http://5ggy.com" target="_blank">亚洲喷奶水中文字幕电影</a>| <a href="http://www09191z.com" target="_blank">日本特黄a级高清免费大片</a>| <a href="http://www04ggg.com" target="_blank">激情吃奶吻胸免费视频xxxx</a>| <a href="http://js06vip.com" target="_blank">亚洲精品自在在线观看</a>| <a href="http://mlhcd.com" target="_blank">1区2区3区产品乱码免费</a>| <a href="http://yx6768.com" target="_blank">亚洲欧美日韩综合久久久久</a>| <a href="http://9527paotui.com" target="_blank">亚洲国产成人精品女人久久久 </a>| <a href="http://llyysp.com" target="_blank">最新国产乱人伦偷精品免费网站 </a>| <a href="http://an930.com" target="_blank">国产91色综合久久免费</a>| <a href="http://appmofun.com" target="_blank">亚洲精品人成网线在线播放va</a>| <a href="http://89895cc.com" target="_blank">亚洲福利在线播放</a>| <a href="http://yutuzb.com" target="_blank">久久久久久曰本AV免费免费</a>| <a href="http://828556.com" target="_blank">亚洲JIZZJIZZ妇女</a>| <a href="http://ddxsrd.com" target="_blank">亚洲AV无码久久精品成人</a>| <a href="http://dd5566.com" target="_blank">成年男女免费视频网站</a>| <a href="http://sds54.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>