锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产日韩女人aaaaaa毛片在线,亚洲精品午夜视频,亚洲av极品无码专区在线观看http://www.tkk7.com/Good-Game/category/26443.htmlzh-cnMon, 12 May 2008 08:33:25 GMTMon, 12 May 2008 08:33:25 GMT60java regex 姝e垯閮ㄥ垎楂樼駭鐗規т嬌鐢?/title><link>http://www.tkk7.com/Good-Game/archive/2008/05/04/197990.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Sun, 04 May 2008 01:59:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2008/05/04/197990.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/197990.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2008/05/04/197990.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/197990.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/197990.html</trackback:ping><description><![CDATA[榪欏氨涓嶄粙緇嶄簡 浠g爜涓婏細<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);">聽unit;<br /><br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.util.regex.Matcher;<br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.util.regex.Pattern;<br /><br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽org.junit.Assert;<br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽org.junit.Test;<br /><br /></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">聽RegexUnit聽{<br /><br /><br />聽聽聽聽@Test<br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br />聽聽聽聽聽*聽<p>鍚戝墠\鍚戝悗鏌ユ壘</p><br />聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽unit9()</span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);">聽Exception{<br />聽聽聽聽聽聽聽聽String聽testStr聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">http://www.google.com</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);">聽涓鑸煡鎵?br />聽聽聽聽聽聽聽聽聽*聽.+(:)聽鏌ヨ鍑虹粨鏋滃寘鍚?<br />聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽Pattern聽pattern聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.+(:)</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽Matcher聽matcher聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽pattern.matcher(testStr);<br />聽聽聽聽聽聽聽聽聽聽聽聽Assert.assertTrue(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">閿欒錛毬犳煡鎵懼嚭緇撴灉閫氳繃聽.+(:)聽姝egex娌℃湁鍖呭惈聽:聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽matcher.find()聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽matcher.group().equals(</span><span style="color: rgb(0, 0, 0);">"</span><b><font color="#0000ff"><span style="color: rgb(0, 0, 0);">http:</span></font></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)聽);<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);">聽聽鍚戝墠鏌ユ壘<br />聽聽聽聽聽聽聽聽聽*聽聽.+(?=:)聽鏌ヨ緇撴灉涓嶅寘鍚?<br />聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽Pattern聽pattern2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.+(?=:)</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽Matcher聽matcher2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pattern2.matcher(testStr);<br />聽聽聽聽聽聽聽聽聽聽聽聽Assert.assertTrue(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">閿欒錛毬犳煡鎵懼嚭緇撴灉閫氳繃聽.+(?=:)聽姝egex鏈夊寘鍚?聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽matcher2.find()</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽matcher2.group().equals(</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">http</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">));<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);">聽鍚戝悗鏌ユ壘<br />聽聽聽聽聽聽聽聽聽*聽(?<=:).+<br />聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽Pattern聽pattern3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">(?<=://).+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽Matcher聽matcher3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pattern3.matcher(testStr);<br />聽聽聽聽聽聽聽聽聽聽聽聽Assert.assertTrue(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">閿欒錛氭煡鎵懼嚭緇撴灉鍖呭惈聽http://聽涓嶅悜鍚庢煡璇?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽matcher3.find()</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽matcher3.group().equals(</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">www.google.com</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)聽);<br />聽聽聽聽}<br /><br /><br />聽聽聽聽@Test<br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);">聽鍥炴湐搴旂敤聽<br />聽聽聽聽聽*聽聽鏌ヨ鍥炴湐銆佸洖鏈旀浛鎹€佸洖鏈斿ぇ灝忓啓鏇挎崲<br />聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽unit8()</span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);">聽Exception{<br />聽聽聽聽聽聽聽聽String聽testStr聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">this聽is聽a聽block聽of聽of聽test,</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽<b>several聽words聽here聽are聽are聽</b></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽<b>repeated聽,聽and聽and聽they聽should聽not聽be.</b>聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽Pattern聽pattern聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">[聽]+(\\w+)[聽]+\\1</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽Matcher聽matcher聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pattern.matcher(testStr);<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鏌ヨ緇撴灉聽<b>are聽are聽</b></span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽Assert.assertTrue(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">閿欒錛歳egex聽涓嶅尮閰嵚?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽matcher.find()</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">matcher.group().split(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).length</span><span style="color: rgb(0, 0, 0);">>=</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">聽);<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(聽matcher.find()聽){<br />聽聽聽聽聽聽聽聽聽聽聽聽Assert.assertTrue(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">閿欒錛歳egex聽涓嶅尮閰嵚?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽matcher.group().split(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).length</span><span style="color: rgb(0, 0, 0);">>=</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">聽);<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鏇挎崲</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽String聽testStr2s聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">313-555-1234</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽Pattern聽pattern2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">(\\d{3})(-)(\\d{3})(-)(\\d{4})</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽Matcher聽mtmp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽pattern2.matcher(testStr2s);<br />聽聽聽聽聽聽聽聽Assert.assertTrue(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">閿欒錛氭病鏈夋煡鏇挎崲</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽mtmp.find()聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽<br />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽mtmp.replaceAll(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">($1)聽$3-$5</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).equals(</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">(313)聽555-1234</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">)聽);<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">/*</span><span style="color: rgb(0, 128, 0);">澶у皬鍐欐浛鎹?java聽涓嶈兘鎴愬姛)<br />聽聽聽聽聽聽聽聽聽*聽聽\E聽緇撴潫聽\L聽鎴柭燶U杞崲<br />聽聽聽聽聽聽聽聽聽*聽聽\l聽聽\L聽鎶婁笅涓涓瓧絎?涓?鎹負灝忓啓<br />聽聽聽聽聽聽聽聽聽*聽聽\聽u聽聽\U聽鎶婁笅涓涓瓧絎?涓?杞崲涓哄ぇ鍐櫬?br />聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽String聽testStr3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><b><span style="color: rgb(0, 0, 0);">tt:google:xx</span></b><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽Pattern聽pattern3聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">(?<=:)(.+)(?=:)</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽Matcher聽matcher2聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pattern3.matcher(testStr3);<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(聽matcher2.find())<br />聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(聽matcher2.group()聽)聽;<br />聽聽聽聽}<br />聽聽聽聽<br />聽聽聽聽<br />}<br /></span></div><br /><br /><br /><img src ="http://www.tkk7.com/Good-Game/aggbug/197990.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2008-05-04 09:59 <a href="http://www.tkk7.com/Good-Game/archive/2008/05/04/197990.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Hibernate 鏁版嵁緇撴瀯錛?鏍戙佸瀵瑰 緇撴瀯琛ㄧず 錛?/title><link>http://www.tkk7.com/Good-Game/archive/2008/04/26/196293.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Sat, 26 Apr 2008 10:30:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2008/04/26/196293.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/196293.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2008/04/26/196293.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/196293.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/196293.html</trackback:ping><description><![CDATA[     鎽樿: level 綾伙細Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package聽hbm;import聽java.util.Set;/**聽*聽@hibernate.class聽table聽=聽"level"聽*聽where聽=聽"聽visible聽=聽...  <a href='http://www.tkk7.com/Good-Game/archive/2008/04/26/196293.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/Good-Game/aggbug/196293.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2008-04-26 18:30 <a href="http://www.tkk7.com/Good-Game/archive/2008/04/26/196293.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏉冮檺璁捐鐨勬帰璁ㄩ槄璇誨悗鎰?/title><link>http://www.tkk7.com/Good-Game/archive/2008/04/07/191376.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Mon, 07 Apr 2008 14:49:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2008/04/07/191376.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/191376.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2008/04/07/191376.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/191376.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/191376.html</trackback:ping><description><![CDATA[ <p id="htie" align="center" goog_docs_charindex="1"> <strong id="xz8e"> <font id="aacz" size="5">聽聽聽聽鏉冮檺璁捐鐨勬帰璁ㄩ槄璇誨悗鎰?/font> </strong> </p> <p id="iwal" align="center" goog_docs_charindex="1"> <strong id="qm7f">聽聽聽聽鏂囩珷璺緞錛?a id="n3dz" ><font color="#551a8b">http://www.chinaitpower.com/A200508/2005-08-07/183934.html<br /></font></a></strong> </p> <p id="r0vu" align="left" goog_docs_charindex="1">聽聽聽聽<strong id="fohi"><font id="d-op" color="#073763">鏉冮檺璁捐</font></strong>閫氬父鍖呮嫭鏁版嵁搴撹璁°佸簲鐢ㄧ▼搴忔帴鍙?API)璁捐銆佺▼搴忓疄鐜頒笁涓儴鍒嗐?/p> <p id="r3nr" align="left" goog_docs_charindex="1">聽聽聽聽<strong id="w.bf"><font id="e2jr" color="#073763">鏉冮檺鍒嗙被錛?/font></strong></p> <p id="kvaw" align="left" goog_docs_charindex="1">聽聽聽聽聽聽聽聽棣栧厛鏄?strong id="a-fu"><font id="fx9p" color="#000000">閽堝鏁版嵁瀛樺彇</font></strong>鐨勬潈闄愶紝閫氬父鏈夊綍鍏ャ佹祻瑙堛佷慨鏀廣佸垹闄ゅ洓縐嶃?/p> <p id="h4bi" align="left" goog_docs_charindex="1">聽聽聽聽聽聽聽聽鍏舵鏄?strong id="obi3">鍔熻兘</strong>錛屽畠鍙互鍖呮嫭渚嬪緇熻絳夋墍鏈夐潪鐩存帴鏁版嵁瀛樺彇鎿嶄綔錛屽彟澶栵紝鎴戜滑榪樺彲鑳藉涓浜涘叧閿暟鎹〃鏌愪簺瀛楁鐨勫瓨鍙栬繘琛岄檺鍒躲?/p> <p id="uoaw" align="left" goog_docs_charindex="1">聽</p> <p id="qt12" align="left" goog_docs_charindex="1">聽</p> <p id="kiqc">鏉冮檺琛ㄥ強鐩稿叧鍐呭澶т綋鍙互鐢ㄥ叚涓〃鏉ユ弿榪幫紝濡備笅錛毬?br id="f:vt" />聽聽聽聽1 <font id="m7-o" color="#660000"><strong id="vufz">鎷ユ湁</strong><strong id="niv7">鏉冮檺</strong></font><font id="dqei" color="#660000"><strong id="v13-">瑙掕壊</strong></font>錛堝嵆鐢ㄦ埛緇勶級錛氬叿浣?strong id="m2-j">鎷ユ湁</strong>鏉冮檺<strong id="g6tf">鎻忚堪</strong>瀹炰綋銆?/p> <p id="zrfy">聽聽聽聽2 <strong id="at7h"><font id="h1zq" color="#660000">鐢ㄦ埛琛?/font></strong>錛氱敤鎴風殑鎻忚堪錛屽叾瀹冿紙濡傚湴鍧銆佺數璇濈瓑淇℃伅錛夛紱聽<br id="xst3" />聽聽聽聽3 <strong id="cyqk"><font id="ij4q" color="#660000">瑙掕壊-鐢ㄦ埛瀵瑰簲琛?/font></strong>錛氳琛ㄨ褰曠敤鎴蜂笌瑙掕壊涔嬮棿鐨勫搴斿叧緋?<font id="nmsx" color="#660000">澶氬澶氬叧緋?/font>)錛屼竴涓敤鎴峰彲浠ラ毝灞炰簬澶氫釜瑙掕壊錛屼竴涓鑹茬粍涔熷彲鎷ユ湁澶氫釜鐢ㄦ埛銆?/p> <p id="k.px">聽聽聽聽4 <strong id="t8.v"><font id="tup4" color="#660000">鏉冮檺鍒楄〃</font></strong>錛氱▼搴?strong id="ohbe">鎵鏈?/strong>鏉冮檺鍒楄〃銆傝琛ㄨ褰曟墍鏈夎鍔犱互鎺у埗鐨勬潈闄愶紝濡傚綍鍏ャ佷慨鏀廣佸垹闄ゃ佹墽琛岀瓑錛浡?br id="garo" />聽聽聽聽5 <strong id="u1ui"><font id="i00i" color="#660000">鏉冮檺-瑙掕壊-鐢ㄦ埛瀵瑰簲琛?/font></strong>錛?strong id="ome4">鏉冮檺</strong>瀵瑰簲<strong id="i0mi">瑙掕壊</strong>(<font id="nmsx" color="#660000">澶氬澶氬叧緋?/font>)鍐嶇敱4琛ㄥ叧緋誨埌<strong id="fl_2">鐢ㄦ埛</strong>銆?/p> <p id="iz:a">聽</p> <p id="exir"> <strong id="x2pu"> <font id="gc1j" color="#6aa84f">鍦ㄦ帰璁ㄦ枃涓殑絎?鏉★紝鎴戞庝箞閮戒笉澶悊瑙o紵鏈涘ぇ瀹舵帰璁ㄣ傚弽鍚戞潈闄愬悧錛熼偅鎬庝箞鍜岀郴緇熶腑鐨勬嫢鏈変竴璧鋒弿榪幫紵</font> </strong> </p> <p id="ycb7">聽</p> <p id="l8-y"> <font id="vvel" color="#274e13"> <strong id="forr">涓嬮潰鎻愬嚭涓浜涜嚜宸辯殑瑙佽В錛?/strong> </font> </p> <p id="w769"> <font id="hxx0" color="#274e13"> <strong id="egjn">聽聽聽聽</strong> </font> <font id="vz4o" color="#000000">1 鐢ㄦ埛琛細鐢ㄦ埛鐨勬弿榪幫紝鍏跺畠錛堝鍦板潃銆佺數璇濈瓑淇℃伅錛夛紱聽</font> </p> <p id="q58-"> <font id="pvhb" color="#000000">聽聽 2 鏉冮檺鍒楄〃錛氱▼搴?strong id="n-8.">鎵鏈?font id="r7ps" color="#660000">鏉冮檺</font></strong>鍒楄〃銆傝琛ㄨ褰曟墍鏈夎鍔犱互鎺у埗鐨勬潈闄愶紝濡傚綍鍏ャ佷慨鏀廣佸垹闄ゃ佹墽琛岀瓑錛浡?br id="xst3" />聽聽聽3 鏉冮檺鏍戯紙妯$硦鐪嬫垚<strong id="wlsw">瑙掕壊</strong>錛屼絾鏈変簺涓嶅悓銆傛爲鎬х粨鏋勶紝緇撴瀯鏁版嵁搴撲腑琛ㄥ閿嚜宸憋級錛氬瀛愭帴鐐圭戶鎵跨埗浜叉帴鐐瑰叏閮ㄦ潈闄愶紝騫跺湪嬈′笂鎵╁厖鍜屽垹鍑忔潈闄愬緩绔嬭嚜宸卞垎鏀?/font> </p> <p id="lvyk">聽聽聽4 鏉冮檺鍒楄〃-鏉冮檺鏍戯細錛堝瀵瑰鍏崇郴錛夌敤浜庢弿榪版<strong id="mf:q"><font id="cum4" color="#990000">鏉冮檺鏍戞帴鐐?/font></strong>瀵?font id="tu_b" color="#990000"><strong id="a_0.">鐖朵翰鎺ョ偣鏉冮檺緇ф壙涓?/strong></font>錛岀敱<font id="whv." color="#990000"><strong id="sqre">鑷繁娣誨姞鍜屾秷鍑忕殑鏉冮檺</strong></font>錛?/p> <p id="g6_m">聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽鏈〃涓敤涓鍒楁灇涓懼垪鐢ㄤ簬琛ㄧず鏈邯褰曟槸娣誨姞鎴栧垹鍑忔潈闄愩?/p> <p id="x_rv">聽聽聽5 鐢ㄦ埛-鏉冮檺鏍戯細<strong id="ifkx">鏉冮檺鏍戞帴鐐?/strong>瀵瑰簲<strong id="ycou">鐢ㄦ埛</strong>錛堝瀵逛竴錛夊叧緋匯?/p> <p id="yaqp">鎰熻鑷繁鐨勮繖縐嶆鏋訛紝鑳藉緢濂界殑鎵╁厖錛堝湪鏌愭帴鐐逛笅澧烇紝鍒犳煇鏉冮檺鎴栫洿鎺ユ壘鍒?strong id="dwf0">鏈鍚戣繎鐨勪竴涓潈闄愭爲鎺ョ偣騫剁戶鎵?/strong>錛壜犅?/p> <p id="ur6l" align="right"> <strong id="zg1o">澶у澶氳璇磋嚜宸辯殑瑙佽В錛屽拰瀵規瘮涓嬭繖涓や釜妗嗘灦鐨勪竴浜涗紭緙虹偣鎶娿傛湰浜洪殢鏃舵伃鍚侴_G</strong> </p> <p id="yxw." align="right"> <strong id="rssr">涓?008-4-7 22:50鍖椾含<br /></strong> </p> <p id="vs0-" align="right">google doc 鍘熺ǹ錛毬?a class="tabcontent" id="publishedDocumentUrl" target="_blank">http://docs.google.com/Doc?id=dkvfctc_16hgvfkbfs</a></p> <p id="hfk_">聽</p> <img src ="http://www.tkk7.com/Good-Game/aggbug/191376.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2008-04-07 22:49 <a href="http://www.tkk7.com/Good-Game/archive/2008/04/07/191376.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>蹇熶慨鏀?xdoclet samples ant -build.xml 閫傚簲瀹為檯寮鍙?http://www.tkk7.com/Good-Game/archive/2008/03/26/188784.htmlG_GG_GWed, 26 Mar 2008 08:29:00 GMThttp://www.tkk7.com/Good-Game/archive/2008/03/26/188784.htmlhttp://www.tkk7.com/Good-Game/comments/188784.htmlhttp://www.tkk7.com/Good-Game/archive/2008/03/26/188784.html#Feedback2http://www.tkk7.com/Good-Game/comments/commentRss/188784.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/188784.html浣跨敤錛?a id="homepage1_HomePageDays_DaysList_ctl01_DayItem_DayList_ctl00_TitleUrl" href="/Good-Game/archive/2008/03/23/188055.html">xdoclet 2聽聽聽 聽聽聽 聽聽聽
聽聽聽 聽聽聽 聽聽聽 ->聽聽 all jar聽
聽聽聽 聽聽聽聽 聽聽 -> 聽 build.xml;build-dist.properties;maven.xml;project.properties;project.xml

寮濮嬶細
聽聽聽 聽聽 1.鍦ㄩ」鐩伐紼?鏍圭洰褰曚笅寤轟竴鏂囦歡澶癸細xdoclet 鎷瘋礉 *.xml 鍒版鏂囦歡涓?br />聽聽聽 聽聽 2.鍦ㄦ鐩綍涓嬪緩 lib 騫舵妸 xdoclet聽 jar 鏀懼叆 .
聽聽聽 聽聽 3.淇敼 build.xml
聽聽聽聽<!--聽clean聽鏀逛負聽-->
聽聽聽聽
<target聽name="clean">
聽聽聽聽聽聽聽聽
<delete聽>
聽聽聽聽聽聽聽聽聽聽聽聽
<fileset聽dir="${samples.dist.dir}">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<include聽name="**/*.hbm.xml"/>
聽聽聽聽聽聽聽聽聽聽聽聽
</fileset>
聽聽聽聽聽聽聽聽
</delete>
聽聽聽聽
</target>

聽聽聽聽<!--聽hibernatedoclet聽鏀逛負聽version聽3.0聽鍜屄爄nclude聽**/*.java-->
聽聽聽 聽聽聽 <
hibernatedoclet聽>
聽聽聽聽聽聽聽聽聽聽聽聽
<fileset聽dir="${samples.java.dir}">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<include聽name="**/*.java"/>
聽聽聽聽聽聽聽聽聽聽聽聽
</fileset>
聽聽聽聽聽聽聽聽
<hibernate聽version="3.0"/>

hbm2ddl>> http://blog.csdn.net/f1musicc/archive/2006/02/21/604699.aspx
eclipse->>
聽聽聽 ant runtime home + classpath = 鍒版湰宸ョ▼涓殑 classpath
聽聽聽 ant
runtime home + mysql jar ;
聽聽聽 ant
runtime home + commons-collection.jar

聽聽聽聽<target聽name="hbm2ddl">
聽聽聽聽聽聽聽聽聽聽
<mkdir聽dir="${hbm2ddl.sql.dir}"/>
聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽
<taskdef聽name="hbm2ddl"
聽聽聽聽聽聽聽聽聽聽聽聽聽classname
="org.hibernate.tool.ant.HibernateToolTask"
聽聽聽聽聽聽聽聽聽聽聽聽聽聽classpath
="E:\\test\\caijing\\WebRoot\\WEB-INF\\classes"/>
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽
<hbm2ddl聽destdir="${hbm2ddl.sql.dir}">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<configuration聽configurationfile="../src/hibernate.cfg.xml"/>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<hbm2ddl聽export="true"聽console="false"聽create="true"聽update="false"聽drop="false"聽outputfilename="bestunix.sql"/>
聽聽聽聽聽聽聽聽聽聽
</hbm2ddl>
聽聽聽聽聽聽聽聽
聽聽聽聽
</target>



->target->name=hibernate->hibernate version=3.0
4.淇敼 build-dist.properties->
聽聽聽 samples.lib.dir錛堟寚瀹氬伐紼媕ar錛?/font>
聽聽聽
samples.src.dir/samples.java.dir錛堜唬鐮佹墍鍦級
聽聽聽
samples.gen-src.dir 錛堟槧灝勭敓鎴愬湴鍧錛?/font>
聽聽聽 聽聽聽 samples.dist.dir聽=聽..\\src\\java\\questionnaire
聽聽聽 聽聽聽 samples.lib.dir聽
=聽..\\lib聽
聽聽聽 聽聽聽 samples.src.dir聽=聽..\\src\\java\\questionnaire
聽聽聽 聽聽聽 samples.java.dir聽
=聽..\\src\\java\\questionnaire
聽聽聽 聽聽聽 samples.gen
-src.dir聽=聽..\\src\\java\\questionnaire

鍔犺澆鍒?eclipse 鐨?ant 涓?br />璋冪敤榪欎釜 target 鍔ㄨ搗鏉ヤ簡灝辮繖鏍楓傚伐浣滃惂錛?br />


G_G 2008-03-26 16:29 鍙戣〃璇勮
]]>
xdoclet 2 http://www.tkk7.com/Good-Game/archive/2008/03/23/188055.htmlG_GG_GSun, 23 Mar 2008 10:38:00 GMThttp://www.tkk7.com/Good-Game/archive/2008/03/23/188055.htmlhttp://www.tkk7.com/Good-Game/comments/188055.htmlhttp://www.tkk7.com/Good-Game/archive/2008/03/23/188055.html#Feedback2http://www.tkk7.com/Good-Game/comments/commentRss/188055.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/188055.html聽聽 all XDoclet -> http://xdoclet.sourceforge.net/xdoclet/install.html
聽聽 jar 涓嬭澆錛?http://xdoclet.codehaus.org
聽聽聽eclipes 鎻掍歡 xdoclet http://www.beust.com/doclipse/

XDoclet 1聽涓浜涘伐鍏?br />聽聽聽http://xdoclet.sourceforge.net/xdoclet/tools.html

緗戜笂demo璧勬枡錛?br />聽聽聽http://www.tkk7.com/martinx/archive/2006/01/25/29197.html

XDoclet 2 for Hibernate 3
聽聽聽聽http://www.hibernate.org/338.html
聽聽聽 http://www.tkk7.com/martinx/archive/2006/01/25/29197.html

XDoclet 2 Tags 璇存槑
聽聽聽http://xdoclet.codehaus.org/XDoclet+Plugins
XDoclet 1銆? 瀵規瘮
聽聽聽http://bbmyth.javaeye.com/blog/31812



澶у涓璧鳳紝XDoclet 2鏃朵唬灝辮鏉ュ埌銆傛垜浠ぇ瀹朵竴璧瘋窡涓娿?img src ="http://www.tkk7.com/Good-Game/aggbug/188055.html" width = "1" height = "1" />

G_G 2008-03-23 18:38 鍙戣〃璇勮
]]>
鎵掔綉欏墊暟鎹紙jdk+姝e垯瑙f瀽錛?/title><link>http://www.tkk7.com/Good-Game/archive/2008/03/09/184796.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Sun, 09 Mar 2008 02:46:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2008/03/09/184796.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/184796.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2008/03/09/184796.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/184796.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/184796.html</trackback:ping><description><![CDATA[鏁版嵁鎵掑嚭鏁堟灉<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">鍙岃壊鐞冿紙</span><span style="color: rgb(0, 0, 0);">2008001</span><span style="color: rgb(0, 0, 0);">錛?/span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">02</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">07</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">09</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">14</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">29</span><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);">03</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">鍙岃壊鐞冿紙</span><span style="color: rgb(0, 0, 0);">2008002</span><span style="color: rgb(0, 0, 0);">錛?/span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">03</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">04</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">18</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">22</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">25</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">29</span><span style="color: rgb(0, 128, 0);">#</span><span style="color: rgb(0, 128, 0);">09</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><img src="http://www.tkk7.com/images/dot.gif" />..</span><span style="color: rgb(0, 0, 0);"><br /></span></div><br />junit浠g爜<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">package</span><span style="color: rgb(0, 0, 0);">聽test;<br /><br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.io.InputStream;<br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.net.URL;<br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.net.URLConnection;<br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.util.regex.Matcher;<br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽java.util.regex.Pattern;<br /><br /></span><span style="color: rgb(0, 0, 255);">import</span><span style="color: rgb(0, 0, 0);">聽junit.framework.TestCase;<br /><br /></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">聽HttpConn聽</span><span style="color: rgb(0, 0, 255);">extends</span><span style="color: rgb(0, 0, 0);">聽TestCase聽{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽testT()聽</span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);">聽Exception聽{<br />聽聽聽聽聽聽聽聽zq聽:<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">聽i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">2008001</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">;i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">){<br />聽聽聽聽聽聽聽聽聽聽聽聽String聽num聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽getQihao(i)聽;<br />聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鍙岃壊鐞冿紙</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">i</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">錛?</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽num);<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(num</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">num.equals(</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">))聽</span><span style="color: rgb(0, 0, 255);">break</span><span style="color: rgb(0, 0, 0);">聽zq;<br />聽聽聽聽聽聽聽聽}<br />聽聽聽聽}<br />聽聽聽聽<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽String聽getQihao(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);">聽qihao)聽</span><span style="color: rgb(0, 0, 255);">throws</span><span style="color: rgb(0, 0, 0);">聽Exception聽{<br />聽聽聽聽聽聽聽聽URL聽url聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽URL(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">http://www.cnlot.net/ssq/details.php?issue=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">qihao);<br />聽聽聽聽聽聽聽聽URLConnection聽uconn聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽url.openConnection();<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽String聽num聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽InputStream聽in聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽uconn.getInputStream();<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">byte</span><span style="color: rgb(0, 0, 0);">[]聽bs聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">byte</span><span style="color: rgb(0, 0, 0);">[in.available()];<br />聽聽聽聽聽聽聽聽in.read(bs);<br />聽聽聽聽聽聽聽聽String聽date聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽String(bs)聽;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽Pattern聽pa聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽.+color=red>([0-9][0-9])<.+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽);<br />聽聽聽聽聽聽聽聽Matcher聽m聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pa.matcher(date);<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(聽m.find()聽)<br />聽聽聽聽聽聽聽聽聽聽聽聽num</span><span style="color: rgb(0, 0, 0);">+=</span><span style="color: rgb(0, 0, 0);">聽m.group(</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽聽pa聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽.+color=blue>([0-9][0-9])<.+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽);<br />聽聽聽聽聽聽聽聽聽m聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽pa.matcher(date);<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(聽m.find()聽)<br />聽聽聽聽聽聽聽聽聽聽聽聽num聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽num.substring(聽</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,num.length()</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">聽)</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">#</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">m.group(</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)聽;<br />聽聽聽聽聽聽聽聽<br />聽聽聽聽聽聽聽聽pa聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Pattern.compile(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">^(([0-9][0-9],){5,}[0-9][0-9]#([0-9][0-9],)*[0-9][0-9]\\|)*(([0-9][0-9],){5,}[0-9][0-9]#([0-9][0-9],)*[0-9][0-9])*$</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽m聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽聽pa.matcher(num);<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(聽m.find()聽)<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽num聽;<br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);">聽<br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">聽;<br />聽聽聽聽}<br />}<br /></span></div><br /><br /><img src ="http://www.tkk7.com/Good-Game/aggbug/184796.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2008-03-09 10:46 <a href="http://www.tkk7.com/Good-Game/archive/2008/03/09/184796.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jdk 鏃墮棿瑙﹀彂鍣?/title><link>http://www.tkk7.com/Good-Game/archive/2008/01/25/177688.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Fri, 25 Jan 2008 02:30:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2008/01/25/177688.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/177688.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2008/01/25/177688.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/177688.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/177688.html</trackback:ping><description><![CDATA[寮曠敤錛歨ttp://blog.bcchinese.net/shiaohuazhang/archive/2005/02/16/10493.aspx <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">聽聽聽聽timer聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽Timer(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽timer.schedule(</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽RunTask(),聽</span><span style="color: rgb(0, 0, 0);">1000</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">60</span><span style="color: rgb(0, 0, 0);">,聽</span><span style="color: rgb(0, 0, 0);">1000</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">240</span><span style="color: rgb(0, 0, 0);">);<br /><br /><br /></span><span style="color: rgb(0, 128, 0);">////////////////////////////////////<br /></span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">聽RunTask聽</span><span style="color: rgb(0, 0, 255);">extends</span><span style="color: rgb(0, 0, 0);">聽TimerTask聽{<br />聽聽</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">boolean</span><span style="color: rgb(0, 0, 0);">聽run聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br />聽聽</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽RunTask()聽{<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">聽run()聽{<br />聽聽聽聽聽聽聽<img src="http://www.tkk7.com/images/dot.gif" /><img src="http://www.tkk7.com/images/dot.gif" /><img src="http://www.tkk7.com/images/dot.gif" /><img src="http://www.tkk7.com/images/dot.gif" /><img src="http://www.tkk7.com/images/dot.gif" />.<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">聽Logger聽logger聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽Logger.getLogger(RunTask.</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">);<br />}<br /></span></div><br /><img src ="http://www.tkk7.com/Good-Game/aggbug/177688.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2008-01-25 10:30 <a href="http://www.tkk7.com/Good-Game/archive/2008/01/25/177688.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>tomcat 閰嶇疆 jndi http://www.tkk7.com/Good-Game/archive/2008/01/24/177485.htmlG_GG_GThu, 24 Jan 2008 06:12:00 GMThttp://www.tkk7.com/Good-Game/archive/2008/01/24/177485.htmlhttp://www.tkk7.com/Good-Game/comments/177485.htmlhttp://www.tkk7.com/Good-Game/archive/2008/01/24/177485.html#Feedback0http://www.tkk7.com/Good-Game/comments/commentRss/177485.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/177485.html 鈽嗐仴(18246131) 14:02:45 web.xml,server.xml 璁ㄥ帉(370801149) 14:02:57 server.xml 鈽嗐仴(18246131) 14:02:58 榪欎袱涓湴鏂癸紝浣犻兘閰嶇疆浜嗗悧錛? 璁ㄥ帉(370801149) 14:03:01 en 璁ㄥ帉(370801149) 14:03:14 jdbc icijavax.sql.DataSourceContainer 璁ㄥ帉(370801149) 14:03:17 web.xml 璁ㄥ帉(370801149) 14:03:28 WEB-INF/web.xml 璁ㄥ帉(370801149) 14:03:33 context.xml

G_G 2008-01-24 14:12 鍙戣〃璇勮
]]>
java,javascript 鍐呰繛鍙栨暟鎹?/title><link>http://www.tkk7.com/Good-Game/archive/2008/01/09/173895.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Wed, 09 Jan 2008 01:46:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2008/01/09/173895.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/173895.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2008/01/09/173895.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/173895.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/173895.html</trackback:ping><description><![CDATA[java 鍐呰繛<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽聽聽聽 <font color="#008000">//鐢?java jdk URL </font><br />聽聽聽 聽聽聽 聽聽聽 URL聽httpurl聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽URL(url);<br />聽聽聽聽聽聽聽聽聽聽聽聽HttpURLConnection聽httpConn聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽(HttpURLConnection)聽httpurl.openConnection();<br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn.setRequestMethod(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">POST</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn.setDoOutput(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn.setDoInput(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽 聽聽 聽聽 聽 <font color="#006400">//</font></span><font color="#008000"><span style="color: rgb(0, 0, 0);"></span></font><span style="color: rgb(0, 0, 0);"><font color="#006400">姝e紡榪炴帴</font><br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn.getOutputStream();<br />聽聽聽 聽聽 聽聽聽聽 <font color="#008000">/**杈撳叆鍙傛暟<br />聽聽聽 聽聽 聽聽 聽 PrintWriter outs = new PrintWriter(httpConn.getOutputStream());<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&back_url=" + returnurl);<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&orderid=" + deposit.getOrderId());<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&bussinessid=" + SZFConstant.B_ID);<br />聽聽聽 聽聽聽 聽聽聽 outs.print("&digestString="<br />聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 + MD5Util.MD5Encode(SZFConstant.B_ID + deposit.getOrderId()<br />聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 聽聽聽 + SZFConstant.KEY));<br />聽聽聽 聽聽聽 聽聽聽 outs.flush();<br />聽聽聽 聽聽聽 聽聽聽 outs.close();<br /><br />聽聽聽 聽聽 聽聽 聽 GET 灝變笉瑕?璇?浜喡?url + 鍙傛暟<br />聽聽聽聽聽聽聽聽聽聽聽 */</font><br />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 255);">byte</span><span style="color: rgb(0, 0, 0);">[]聽bb聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">byte</span><span style="color: rgb(0, 0, 0);">[httpConn.getInputStream().available()];<br />聽聽聽聽聽聽聽聽聽聽聽聽httpConn.getInputStream().read(bb);<br />聽聽聽聽聽聽聽聽聽聽聽 <font color="#006400">//鍙栧緱鏁版嵁 </font><br />聽聽聽 聽聽聽 聽聽聽 String聽str聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽String(bb);</span></div><br />javascript 鐜板湪榪欑鍙栨硶鏈変釜鍚嶅瓧鍙紙ajax錛?杞?<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">html</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">head</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">link聽href</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">http://www.cc168.com.cn/css/index.css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽rel</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">stylesheet</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">link聽rel</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">stylesheet</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽href</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">http://www.cc168.com.cn/css/framework.css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">text/css</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/></span><span style="color: rgb(0, 0, 0);"><br />聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">script聽language</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">javascript</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽<br />聽window.onload聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">()<br />聽{<br />聽聽CreateDateSelect();<br />聽}<br /><br />聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽xmlHttp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">;<br />聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽e;<br />聽<br />聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鍒涘緩XMLHTTP瀵硅薄</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽getXMLHTTPObj()<br />聽{<br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽C聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />聽聽</span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"><br />聽聽{<br />聽聽聽聽聽C聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽ActiveXObject(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Msxml2.XMLHTTP</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">(e)<br />聽聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽{<br />聽聽聽聽C聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽ActiveXObject(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Microsoft.XMLHTTP</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽}<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">(sc)<br />聽聽聽{<br />聽聽聽聽C聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽}<br />聽聽}<br />聽聽<br />聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(聽</span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(0, 0, 0);">C聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">typeof</span><span style="color: rgb(0, 0, 0);">聽XMLHttpRequest聽</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">undefined</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽)<br />聽聽{<br />聽聽聽C聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">聽XMLHttpRequest();<br />聽聽}<br />聽聽<br />聽聽</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">聽C;<br />聽}<br />聽<br />聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">璋冪敤榪滅▼鏂規硶</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽callServer(e)<br />聽{聽<br />聽聽</span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);"><br />聽聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(聽xmlHttp聽</span><span style="color: rgb(0, 0, 0);">&&</span><span style="color: rgb(0, 0, 0);">聽xmlHttp聽.readyState聽</span><span style="color: rgb(0, 0, 0);">!=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">聽)<br />聽聽聽{<br />聽聽聽聽xmlHttp.abort();<br />聽聽聽}<br />聽聽聽<br />聽聽聽xmlHttp聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽getXMLHTTPObj();<br />聽聽聽<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(聽xmlHttp聽)<br />聽聽聽{<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">outgroup</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).style.display聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">none</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鑾峰彇鏌ヨ鏃ユ湡</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽dateSele聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽e.options[e.selectedIndex].value;<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">date</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽dateSele聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽寮鏀懼紡鍩洪噾鍑鍊?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /><br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鏋勯犳煡璇㈣繛鎺ュ瓧絎︿覆</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽url聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">https://www.google.com/accounts/ManageAccount</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽<br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鎵撳紑榪炴帴</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(navigator.appName聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽'Netscape'){<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽聽netscape.security.PrivilegeManager.enablePrivilege(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">UniversalBrowserRead</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽}聽</span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">聽(e)聽{<br />聽聽聽聽聽聽聽alert(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Permission聽UniversalBrowserRead聽denied.</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽}}<br />聽聽聽聽xmlHttp.open(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">GET</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,聽url,聽</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">璁劇疆鍥炶皟鍑芥暟</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽xmlHttp.onreadystatechange聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽updatePage;<br />聽聽聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鍙戦佽姹?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽聽聽xmlHttp.send(</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">);<br />聽聽聽}<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"><br />聽聽聽{<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">XMLHTTP瀵硅薄鍒涘緩澶辮觸</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽}<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">聽(e)<br />聽聽{<br />聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鏌ヨ閿欒:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽e;<br />聽聽}<br />聽}<br />聽<br />聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鍥炶皟澶勭悊鍑芥暟</span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽updatePage()<br />聽{<br />聽聽</span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">聽(xmlHttp.readyState聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">)<br />聽聽聽{<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">姝e湪鍔犺澆榪炴帴瀵硅薄<img src="http://www.tkk7.com/images/dot.gif" /><img src="http://www.tkk7.com/images/dot.gif" /></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽}<br /><br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">聽(xmlHttp.readyState聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">)<br />聽聽聽{<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">榪炴帴瀵硅薄鍔犺澆瀹屾瘯銆?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽}<br /><br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">聽(xmlHttp.readyState聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">)<br />聽聽聽{<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鏁版嵁鑾峰彇涓?img src="http://www.tkk7.com/images/dot.gif" /><img src="http://www.tkk7.com/images/dot.gif" /></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽}<br /><br />聽聽聽</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">聽(xmlHttp.readyState聽</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">4</span><span style="color: rgb(0, 0, 0);">)<br />聽聽聽{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽response聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽xmlHttp.responseText;<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">out</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽response;<br />聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">outgroup</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).style.display聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽}<br />聽聽}<br />聽聽</span><span style="color: rgb(0, 0, 255);">catch</span><span style="color: rgb(0, 0, 0);">聽(e)<br />聽聽{<br />聽聽聽聽聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">flag</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鍥炶皟澶勭悊閿欒:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽e;<br />聽聽}<br />聽}<br /><br />聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">鍒涘緩鏃ユ湡閫夋嫨涓嬫媺妗?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">聽CreateDateSelect()<br />聽{<br /><br />聽聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽html聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽[];<br />聽聽聽聽聽聽聽聽聽<br />聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽iYear</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);">;聽iYear</span><span style="color: rgb(0, 0, 0);"><=</span><span style="color: rgb(0, 0, 0);">2006</span><span style="color: rgb(0, 0, 0);">;聽iYear聽</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)<br />聽聽{<br />聽聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽iMonth</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;聽iMonth</span><span style="color: rgb(0, 0, 0);"><=</span><span style="color: rgb(0, 0, 0);">12</span><span style="color: rgb(0, 0, 0);">;聽iMonth聽</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">聽)<br />聽聽聽{<br />聽聽聽聽</span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(聽</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">聽iDay</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;聽iDay</span><span style="color: rgb(0, 0, 0);"><=</span><span style="color: rgb(0, 0, 0);">31</span><span style="color: rgb(0, 0, 0);">;聽iDay聽</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">聽)<br />聽聽聽聽{聽<br />聽聽聽聽html[html.length]聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><option聽value=\</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">聽聽+聽iYear聽+聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽+聽iMonth聽+聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽+聽iDay聽+聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽iYear聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">騫?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽iMonth聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鏈?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽iDay聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鏃?/span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"></option></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽}<br />聽聽聽}<br />聽聽}<br />聽聽聽聽聽聽<br />聽聽document.getElementById(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">dateSele</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">).innerHTML聽</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><select聽name=\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">dateSele\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽id=\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">dateSele\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽onchange=\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">callServer(</span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">);\</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽html.join(</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">)聽</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"></select></span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />聽}聽<br />聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">script</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"><br /></span></div><br /><img src ="http://www.tkk7.com/Good-Game/aggbug/173895.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2008-01-09 09:46 <a href="http://www.tkk7.com/Good-Game/archive/2008/01/09/173895.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>xdoclet 浠g爜鐢熸垚http://www.tkk7.com/Good-Game/archive/2007/12/24/170123.htmlG_GG_GMon, 24 Dec 2007 09:54:00 GMThttp://www.tkk7.com/Good-Game/archive/2007/12/24/170123.htmlhttp://www.tkk7.com/Good-Game/comments/170123.htmlhttp://www.tkk7.com/Good-Game/archive/2007/12/24/170123.html#Feedback0http://www.tkk7.com/Good-Game/comments/commentRss/170123.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/170123.html鍙傝冿細 http://blog.easyjf.com/html/blog/20061127/3290288676803397.htm
瀹樻柟瀹屾暣API錛?Template Language (*.xdt)

鍥犱負鍙傝冧腑錛氭槸榪樻槸姣旇緝澶嶆潅鐨勪緥錛堟暟鏈漢鎰氶挐^_^錛夌壒鐣欎竴鏂囷細
1>ant緙栬緫鏂囦歡
<?xml聽version="1.0"聽encoding="UTF-8"?>
<project聽name="xdocletExample"聽default="doall"聽basedir=".">
聽聽聽聽
<property聽name="basedir"聽location="E:\ue_test\xdoclet"/>
聽聽聽聽
<property聽name="xdoclet.lib.dir"聽location="D:\hbn\hibernate-3.2\xdoclet-1.2.3\lib"/>

聽聽聽聽
<property聽name="gen.src.dir"聽location="${basedir}/target"/>
聽聽聽聽
<property聽name="src.dir"聽location="${basedir}/src"/>
聽聽聽聽
<property聽name="template.dir"聽location="${basedir}/template"/>
聽聽聽聽
<property聽name="customtag.dir"聽location="${basedir}/bin"/>

聽聽聽聽
<path聽id="xdoclet.lib.path">
聽聽聽聽聽聽聽
<fileset聽dir="${xdoclet.lib.dir}"聽includes="*.jar"/>
聽聽聽聽
</path>

聽聽聽聽
<taskdef聽name="xdoclet"聽classname="xdoclet.DocletTask"聽classpathref="xdoclet.lib.path"/>聽聽聽

聽聽聽聽
<target聽name="init"/>

聽聽聽聽
<target聽name="daogener"聽depends="init">
聽聽聽聽聽聽聽
<xdoclet聽destdir="${gen.src.dir}">
聽聽聽聽聽聽聽聽聽聽聽
<fileset聽dir="${src.dir}"聽includes="${cjava.file}"/>
聽聽聽聽聽聽聽聽聽聽聽
<template聽templateFile="${xdt.file}"聽acceptInterfaces="false"聽acceptAbstractClasses="false"聽destinationfile="{0}DAO.java"/>
聽聽聽聽聽聽聽
</xdoclet>
聽聽聽聽
</target>

聽聽聽聽
<target聽name="doall"聽depends="daogener,daoimplgener"/>

</project>

鍦ㄨ繍琛屼笂闈㈡枃浠舵椂鍊欏姩鎬佽緭鍏ュ弬鏁?br />聽1.渚濈収鐨?.java 鏂囦歡錛?cjava.file 錛夛紱
聽2.渚濈収鐨?.xdt.file 鏂囦歡錛?xdt.file 錛夛紱

姣斿DOS涓緭鍏ワ細
E:\ue_test\xdoclet>ant daogener
-Dxdt.file=template\daointerface.xdt
-Dcjava.file=test\TestXDoclet.java

2.鍙傝冪殑java鏂囦歡錛堢畝鍗曡繃澶翠簡 鍛靛懙錛?br />
package聽test;
聽聽
/**
聽聽*聽@hasRef
聽聽
*/
publicclass聽TestXDoclet{
聽聽聽聽
/**
聽聽聽聽聽*聽@ref.model聽name="sytp"
聽聽聽聽聽
*/
聽聽聽聽
private聽PubSystype聽sytp;

聽聽聽聽
private String gg;
}

3.xdt 妯℃澘
聽 鏍囩瑙i噴錛?br />
<XDtClass:ifHasClassTag聽tagName="hasRef">鍒ゆ柇 java鏂囦歡涓湁 @hasRef
<XDtField:forAllFields>聽 1> 寰幆鏌ユ壘

2>鍒ゆ柇鏈?/font>@ref.model聽name=銆傘?/span>
聽 <XDtField:ifHasFieldTag聽tagName="ref.model"聽paramName="name">

3>鍙栧?/b>
聽聽
<XDtField:fieldTagValue聽tagName="ref.model"聽paramName="name"/>

package聽com.hycs.bs.client.itf;

import聽java.util.List;

//榪欐槸聽packageName.className聽榪欏拰濂界悊瑙?/font>
import聽
<XDtPackage:packageName聽/>.<XDtClass:className聽/>;

public聽interface聽
<XDtClass:className聽/>DAO聽{

聽聽聽聽//娣誨姞
聽聽聽聽boolean聽add(
<XDtClass:className聽/>聽instance);
聽聽聽聽
聽聽聽聽//閫昏緫娣誨姞
聽聽聽聽
<XDtClass:ifHasClassTag聽tagName="hasRef">
聽聽聽聽聽聽聽聽boolean聽add(
<XDtClass:className聽/>聽instance,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<XDtField:forAllFields>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<XDtField:ifHasFieldTag聽tagName="ref.model"聽paramName="name">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽String聽
<XDtField:fieldTagValue聽tagName="ref.model"聽paramName="name"/>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</XDtField:ifHasFieldTag>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</XDtField:forAllFields>);聽聽
聽聽聽聽
</XDtClass:ifHasClassTag>

聽聽聽聽//鏇存柊
聽聽聽聽boolean聽update(
<XDtClass:className聽/>聽instance);


聽聽聽聽//寰楀埌涓涓璞?/font>
聽聽聽聽
<XDtClass:className聽/>聽get(String聽pkid);
}

榪愯DOS->
E:\ue_test\xdoclet>ant daogener
-Dxdt.file=template\daointerface.xdt
-Dcjava.file=test\TestXDoclet.java

寰楀埌鐨勪唬鐮侊細
package聽com.hycs.bs.client.itf;

import聽java.util.List;

//榪欐槸聽packageName.className聽榪欏拰濂界悊瑙?/span>
import聽test.TestXDoclet;

publicinterface聽TestXDocletDAO聽{

聽聽聽聽
//娣誨姞
聽聽聽聽boolean聽add(TestXDoclet聽instance);
聽聽聽聽
//閫昏緫娣誨姞
聽聽聽聽聽聽聽聽boolean聽add(TestXDoclet聽instance,String聽sytp);聽
聽聽聽聽
//鏇存柊
聽聽聽聽boolean聽update(TestXDoclet聽instance);

聽聽聽聽
//寰楀埌涓涓璞?/span>
聽聽聽聽TestXDoclet聽get(String聽pkid);
}








G_G 2007-12-24 17:54 鍙戣〃璇勮
]]>
搴忓垪鍖栧拰鍙嶅簭鍒楀寲瀵硅薄鍒?鏁版嵁搴?/title><link>http://www.tkk7.com/Good-Game/archive/2007/11/29/164051.html</link><dc:creator>G_G</dc:creator><author>G_G</author><pubDate>Thu, 29 Nov 2007 09:35:00 GMT</pubDate><guid>http://www.tkk7.com/Good-Game/archive/2007/11/29/164051.html</guid><wfw:comment>http://www.tkk7.com/Good-Game/comments/164051.html</wfw:comment><comments>http://www.tkk7.com/Good-Game/archive/2007/11/29/164051.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/Good-Game/comments/commentRss/164051.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/Good-Game/services/trackbacks/164051.html</trackback:ping><description><![CDATA[ <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <span style="color: rgb(0, 0, 0);">聽聽聽聽</span> <span style="color: rgb(0, 128, 0);">/*</span> <span style="color: rgb(0, 128, 0);"> <br />聽聽聽聽聽*聽灝嗗璞¤漿鍖栨垚java.sql.Blob聽<br />聽聽聽聽聽*聽瑕佹眰聽瀵硅薄鏄簭鍒楀寲鐨?br />聽聽聽聽聽</span> <span style="color: rgb(0, 128, 0);">*/</span> <span style="color: rgb(0, 0, 0);"> <br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽java.sql.Blob聽ObjectToBlob(Object聽obj)聽</span> <span style="color: rgb(0, 0, 255);">throws</span> <span style="color: rgb(0, 0, 0);">聽IOException{<br />聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">try</span> <span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽ByteArrayOutputStream聽out聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">new</span> <span style="color: rgb(0, 0, 0);">聽ByteArrayOutputStream();<br />聽聽聽聽聽聽聽聽聽聽聽聽ObjectOutputStream聽outputStream聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">new</span> <span style="color: rgb(0, 0, 0);">聽ObjectOutputStream(out);<br />聽聽聽聽聽聽聽聽聽聽聽聽outputStream.writeObject(obj);<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">byte</span> <span style="color: rgb(0, 0, 0);">[]聽bytes聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽out.toByteArray();<br />聽聽聽聽聽聽聽聽聽聽聽聽outputStream.close();<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽Hibernate.createBlob(bytes);<br />聽聽聽聽聽聽聽聽}聽</span> <span style="color: rgb(0, 0, 255);">catch</span> <span style="color: rgb(0, 0, 0);">聽(Exception聽e)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 128, 0);">//</span> <span style="color: rgb(0, 128, 0);">聽TODO:聽handle聽exception</span> <span style="color: rgb(0, 128, 0);"> <br /> </span> <span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">ObjectToBlob</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">null</span> <span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽}聽聽聽聽聽聽聽聽<br />聽聽聽聽}<br />聽聽聽聽<br />聽聽聽聽<br />聽聽聽聽</span> <span style="color: rgb(0, 128, 0);">/*</span> <span style="color: rgb(0, 128, 0);"> <br />聽聽聽聽聽*聽灝唈ava.sql.Blob聽杞寲鎴惵犲璞÷犵浉搴斿璞?br />聽聽聽聽聽*聽瑕佹眰聽瀵硅薄鏄簭鍒楀寲鐨?br />聽聽聽聽聽</span> <span style="color: rgb(0, 128, 0);">*/</span> <span style="color: rgb(0, 0, 0);">聽聽聽聽<br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽Object聽BlobToObject(java.sql.Blob聽desblob,Object聽obj)聽</span> <span style="color: rgb(0, 0, 255);">throws</span> <span style="color: rgb(0, 0, 0);">聽IOException{<br />聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">try</span> <span style="color: rgb(0, 0, 0);">聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽ObjectInputStream聽in聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">new</span> <span style="color: rgb(0, 0, 0);">聽ObjectInputStream(desblob.getBinaryStream());<br />聽聽聽聽聽聽聽聽聽聽聽聽obj聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽聽in.readObject();<br />聽聽聽聽聽聽聽聽聽聽聽聽in.close();聽聽聽聽<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽obj;<br />聽聽聽聽聽聽聽聽}聽</span> <span style="color: rgb(0, 0, 255);">catch</span> <span style="color: rgb(0, 0, 0);">聽(Exception聽e)聽{<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 128, 0);">//</span> <span style="color: rgb(0, 128, 0);">聽TODO:聽handle聽exception</span> <span style="color: rgb(0, 128, 0);"> <br /> </span> <span style="color: rgb(0, 0, 0);">聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">BlobToObject</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽聽聽聽聽聽聽聽聽e.printStackTrace();<br />聽聽聽聽聽聽聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">null</span> <span style="color: rgb(0, 0, 0);">;<br />聽聽聽聽聽聽聽聽}聽聽聽聽聽聽聽聽<br />聽聽聽聽}聽聽聽聽<br />聽聽聽聽<br />聽聽聽聽<br /></span> </div> <br /> <br /> <img src ="http://www.tkk7.com/Good-Game/aggbug/164051.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/Good-Game/" target="_blank">G_G</a> 2007-11-29 17:35 <a href="http://www.tkk7.com/Good-Game/archive/2007/11/29/164051.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java鍩虹http://www.tkk7.com/Good-Game/archive/2007/10/22/155070.htmlG_GG_GMon, 22 Oct 2007 10:34:00 GMThttp://www.tkk7.com/Good-Game/archive/2007/10/22/155070.htmlhttp://www.tkk7.com/Good-Game/comments/155070.htmlhttp://www.tkk7.com/Good-Game/archive/2007/10/22/155070.html#Feedback0http://www.tkk7.com/Good-Game/comments/commentRss/155070.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/155070.html鎺ュ彛閲岄潰鐨勫睘鎬у湪榛樿鐘舵佷笅闈㈤兘鏄?/span>public static

2.聽聽聽聽
琚0鏄庝負final鐨勫彉閲忓繀欏誨湪澹版槑鏃剁粰瀹氬垵鍊鹼紝鑰屽湪浠ュ悗鐨勫紩鐢ㄤ腑鍙兘璇誨彇錛屼笉鍙慨鏀廣?br />

3.聽聽
鍖垮悕鐨勫唴閮ㄧ被鏄病鏈夊悕瀛楃殑鍐呴儴綾匯備笉鑳?/span>extends(緇ф壙) 鍏跺畠綾伙紝浣嗕竴涓唴閮ㄧ被鍙互浣滀負涓涓帴鍙o紝鐢卞彟涓涓唴閮ㄧ被瀹炵幇銆?br />

4.聽
闈欐佸唴閮ㄧ被錛?/span>Inner Class錛夊啓鎴愯繖鏍鋒墠鍙互 鍦ㄥ唴閮?new 鍑?錛?static final public class XXXxx
聽聽聽 聽聽 聽聽 聽
1.鍒涘緩涓涓?/span>static鍐呴儴綾葷殑瀵硅薄錛屼笉闇瑕佷竴涓閮ㄧ被瀵硅薄
聽聽聽 聽聽聽 聽聽聽
2涓嶈兘浠庝竴涓?/span>static鍐呴儴綾葷殑涓涓璞¤闂竴涓閮ㄧ被瀵硅薄

5.

聽聽聽 聽聽聽 HashMap 綾繪病鏈夊垎綾繪垨鑰呮帓搴忋傚畠鍏佽涓涓?/span> null 閿拰澶氫釜 null 鍊箋?/span>

銆銆Hashtable 綾諱技浜?/span> HashMap錛屼絾鏄笉鍏佽 null 閿拰 null 鍊箋傚畠涔熸瘮 HashMap 鎱紝鍥犱負瀹冩槸鍚屾鐨勩?/span>


6. GC

聽聽聽 聽聽聽 System.gc()

聽聽聽 聽聽聽 Runtime.getRuntime().gc()


7.閲嶅啓Overriding鍜岄噸杞?/span>Overloading
聽聽聽 濡傛灉鍦ㄥ瓙綾諱腑瀹氫箟鏌愭柟娉曚笌鍏剁埗綾繪湁鐩稿悓鐨勫悕縐板拰鍙傛暟錛屾垜浠璇ユ柟娉曡閲嶅啓 (Overriding)銆?/span>

聽聽聽 濡傛灉鍦ㄤ竴涓被涓畾涔変簡澶氫釜鍚屽悕鐨勬柟娉曪紝瀹冧滑鎴栨湁涓嶅悓鐨勫弬鏁頒釜鏁版垨鏈変笉鍚岀殑鍙傛暟綾誨瀷錛屽垯縐頒負鏂規硶鐨勯噸杞?/span>(Overloading)銆?/span>Overloaded鐨勬柟娉曟槸鍙互鏀瑰彉榪斿洖鍊肩殑綾誨瀷銆?/span>


8.鎶借薄綾繪槸鍚﹀彲緇ф壙瀹炰綋綾?/span>(concrete class)

聽聽聽 聽聽 聽聽 鎶借薄綾繪槸鍚﹀彲緇ф壙瀹炰綋綾伙紝浣嗗墠鎻愭槸瀹炰綋綾誨繀欏繪湁鏄庣‘鐨勬瀯閫犲嚱鏁?/span>


9.try {}閲屾湁涓涓?/span>return璇彞錛岄偅涔堢揣璺熷湪榪欎釜try鍚庣殑finally {}閲岀殑code浼氫笉浼氳鎵ц錛屼粈涔堟椂鍊欒鎵ц錛屽湪return鍓嶈繕鏄悗?

銆銆浼氭墽琛岋紝鍦?/span>return鍓嶆墽琛屻?/span>

聽聽聽 聽聽

10.switch錛?/span>expr1錛変腑錛?/span>expr1鏄竴涓暣鏁拌〃杈懼紡銆傚洜姝や紶閫掔粰 switch 鍜?/span> case 璇彞鐨勫弬鏁板簲璇ユ槸 int銆?/span> short銆?/span> char 鎴栬?/span> byte銆?/span>long,string 閮戒笉鑳戒綔鐢ㄤ簬swtich銆?/span>




G_G 2007-10-22 18:34 鍙戣〃璇勮
]]>
eclipes javadoc 浣跨敤 http://www.tkk7.com/Good-Game/archive/2007/10/22/155033.htmlG_GG_GMon, 22 Oct 2007 08:47:00 GMThttp://www.tkk7.com/Good-Game/archive/2007/10/22/155033.htmlhttp://www.tkk7.com/Good-Game/comments/155033.htmlhttp://www.tkk7.com/Good-Game/archive/2007/10/22/155033.html#Feedback0http://www.tkk7.com/Good-Game/comments/commentRss/155033.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/155033.html2銆俲avadoc 鍛戒護瀛︿範
聽聽聽 @author 浣滆?br />聽聽聽 @see 鍙﹁鍙傝
聽聽聽 聽聽聽 錛?錛夈丂see "string" 涓?string"娣誨姞鏂囨湰欏癸紝涓嶄駭鐢熼摼鎺ャ?br />聽聽聽 聽聽聽 錛?錛夈丂see <a href="URL#Value">Label</a> 浣跨敤HTML鏍囪浜х敓閾炬帴
聽聽聽 聽聽聽 錛?錛夈丂see package.class#member Label 浣跨敤Java璇█鐨勫悕瀛梡ackage.class #member浜х敓閾炬帴銆?

@version 鐗?br />聽聽聽 @since 浠庝互涓嬬増鏈紑
聽聽聽 @param 鍙傛暟璇存槑

/** */涓殑寮澶存槸娉ㄨВ

聽聽 /**
聽聽 */聽 鐨勫氨榪戝師鍒?鍦ㄩ偅涓笂闈㈠氨涓洪偅涓敞瑙?/dt>

鍙傜収錛歨ttp://java.ccidnet.com/art/3743/20031203/519697_1.html

/** class description
*/


3銆乂ariable Description:鎻忚堪鍙橀噺鐨勬剰涔夊拰鍙栧煎惈涔夈?br /> /** var variable description
*/

4銆丮ethod Description:鏍囨槑姣忎釜鏂規硶鐨勮緭鍏ャ佽緭鍑哄弬鏁板拰榪斿洖鍊肩被鍨嬶紝璇存槑鐗規畩鍙橀噺鍙栧肩殑鍚箟銆傜浉鍏崇被鏂囨。閾炬帴銆?br />
/** method description
* @param var signification 鏂規硶鍙傛暟璇存槑
* @exception exception class name throws 璇存槑
* @return return_value return signification return 璇存槑
*/

5銆丄ssociation Description:鍏寵仈綾繪枃妗f弿榪幫紝鍦ㄦ敞閲婂綋涓渶瑕佸弬寮曞叾瀹冩枃妗f弿榪扮殑鍦版柟錛屽彲鍦ㄧ浉搴旂殑娉ㄩ噴褰撲腑濡備笅鎻掑叆錛?br /> /** method description

* @param var signification
* @exception exception class name
* @return return_value return signification
* @see package.class#member label
*/

6銆佸寘鎻忚堪鏂囦歡錛氭鎷弿榪板寘鐨勫姛鑳藉拰璁捐姒傝銆備負姣忎釜鍖呭垱寤轟竴涓弿榪版枃浠訛紝鍛藉悕涓簆ackage.html錛屼笌鍖呯殑java鏂囦歡鏀懼湪涓璧楓?



聽聽聽



G_G 2007-10-22 16:47 鍙戣〃璇勮
]]>
閲嶆瀯 eclips 蹇敭http://www.tkk7.com/Good-Game/archive/2007/10/15/152890.htmlG_GG_GMon, 15 Oct 2007 02:21:00 GMThttp://www.tkk7.com/Good-Game/archive/2007/10/15/152890.htmlhttp://www.tkk7.com/Good-Game/comments/152890.htmlhttp://www.tkk7.com/Good-Game/archive/2007/10/15/152890.html#Feedback0http://www.tkk7.com/Good-Game/comments/commentRss/152890.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/152890.html1.鏀瑰悕 :聽聽(聽alt+shift+R )
2.綾葷Щ鍔?(聽alt+shift+V )
3.鏂規硶涓婄Щ鐖剁被,涓嬬Щ瀛愮被 (alt+shift+T) + U/D
4.鏂規硶鎺ュ彛鍖柭?(alt+shift+T) +T
5.閮ㄥ垎浠g爜鎻愬崌涓烘柟娉?alt+shift+M
6.灞閮ㄥ彉閲忔彁鍗囦負綾誨彉閲?alt+shift+F

.............

***************************************************************

Ctrl+M: 聽 宸ヤ綔鍖烘渶澶у寲/鏈灝忓寲 聽
聽 Alt+/: 聽 聽 鏅鴻兘鎻愮ず 聽
聽 F3: 聽 聽 聽 聽 聽 瀵熺湅澹版槑 聽
聽 Crtl+1: 聽 淇閿欒 聽
聽 聽
聽 Shift+Alt+T: 聽 閲嶆瀯 聽
聽 Shift+Alt+M: 聽 鎻愬彇鍑芥暟 聽
聽 Shift+Alt+R: 聽 閲嶅懡鍚?聽
聽 Shift+Alt+C: 聽 鏇存敼鍑芥暟鏍囪 聽
聽 聽
聽 Ctrl+Shitf+F: 聽 鏍煎紡鍖栦唬鐮?聽


G_G 2007-10-15 10:21 鍙戣〃璇勮
]]>
java 鏂囦歡鍔犺澆 (鍙傝?Hibernate 婧愮爜 ) http://www.tkk7.com/Good-Game/archive/2007/10/10/151745.htmlG_GG_GWed, 10 Oct 2007 06:50:00 GMThttp://www.tkk7.com/Good-Game/archive/2007/10/10/151745.htmlhttp://www.tkk7.com/Good-Game/comments/151745.htmlhttp://www.tkk7.com/Good-Game/archive/2007/10/10/151745.html#Feedback1http://www.tkk7.com/Good-Game/comments/commentRss/151745.htmlhttp://www.tkk7.com/Good-Game/services/trackbacks/151745.html嫻嬭瘯 鍦?C/S聽 鑰?瀹為檯榪愯 B/S 閫犳垚閰嶇疆鏂囦歡 鍦ㄧ‖緙栫爜鏃舵繪槸鏀?銆?br />浣嗙湅 hibernate 鐨勯厤緗枃浠?紜彲浠ュ緢濂藉伐浣?錛屾病鍔炴硶璇繪簮鐮?
鍦ㄦ鏋朵腑 鍙戠幇 ConfigHelper綾昏搗鍒頒簡浣滅敤 銆?br />緇撳悎鑷繁寮鍙戦渶姹傦紝鍐欏嚭浜嗚嚜宸辯殑 甯︽煡璇㈡枃浠跺姛鑳界被
鎵╁睍鐨勪富瑕侀儴鍒嗗湪 findFile鏂規硶 榪欑敤浜嗕竴涓?綆鍗曠殑鏁版嵁緇撴瀯鏈夊叴瓚g殑鍙互鐪嬬湅


嫻嬭瘯錛?/b>
鏂囦歡skynet.xml
<?xml聽version="1.0"聽encoding="UTF-8"?>
<xml-body>
聽聽聽聽
<man聽id='1'>
聽聽聽聽聽聽聽聽
<name>鍒樺嚡姣?/span></name>
聽聽聽聽聽聽聽聽
<avg>24</avg>
聽聽聽聽
</man>
聽聽聽聽
<man聽id='2'>
聽聽聽聽聽聽聽聽
<name>heha</name>
聽聽聽聽聽聽聽聽
<avg>25</avg>
聽聽聽聽
</man>
</xml-body>

嫻嬭瘯綾?/font>
package聽test.config;

import聽org.apache.commons.jxpath.JXPathContext;
import聽org.apache.commons.jxpath.XMLDocumentContainer;

import聽junit.framework.TestCase;

publicclass聽SkynetConfigTest聽extends聽TestCase聽{

聽聽聽聽
protectedvoid聽setUp()聽throws聽Exception聽{
聽聽聽聽聽聽聽聽
super.setUp();
聽聽聽聽}
聽聽聽聽
聽聽聽聽
publicvoid聽testConfigFile(){
聽聽聽聽聽聽聽聽System.out.println(
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
//find聽file聽in聽System聽user.dir聽->聽skynet.xml聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SkynetConfig.getResourceAsFile(System.getProperty("user.dir")聽,聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"skynet.xml").getPath()
聽聽聽聽聽聽聽聽);
聽聽聽聽聽聽聽聽System.out.println(
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
//find聽file聽in聽System聽java.class.path聽->聽skynet.xml聽
聽聽聽聽聽聽聽聽聽聽聽聽SkynetConfig.getResourceAsFile(System.getProperty("java.class.path")聽,聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
"skynet.xml").getPath()聽
聽聽聽聽聽聽聽聽);
聽聽聽聽}
聽聽聽聽
publicvoid聽testConfigURL(){
聽聽聽聽聽聽聽聽聽聽聽聽JXPathContext聽jx聽
=聽JXPathContext.newContext(new聽XMLDocumentContainer(聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
//聽in聽System聽user.dir,java.class.path聽find聽聽url:skynet
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽SkynetConfig.getResourceAsURL("skynet.xml")聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽));
聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(聽jx.getValue(
"//man[avg='24']/@id")聽);
聽聽聽聽聽聽聽聽聽聽聽聽System.out.println(聽jx.getValue(
"//man[avg='24']/name")聽);
聽聽聽聽}
聽聽聽聽
聽聽聽聽
publicvoid聽testConfigStream(){
聽聽聽聽聽聽聽聽System.out.println(聽SkynetConfig.getResourceAsStream(
"skynet.xml")聽);
聽聽聽聽}
}


緇撴灉錛?br />E:\src3\rlzy15\lmisWeb\WEB-INF\classes\test\config\skynet.xml
E:\src3\rlzy15\lmisWeb\WEB-INF\classes\test\config\skynet.xml
1
鍒樺嚡姣?br />java.io.FileInputStream@1551d7f


SkynetConfig 綾?/span>
package聽test.config;

import聽java.io.File;
import聽java.io.FileInputStream;
import聽java.io.InputStream;

import聽java.net.URL;

import聽org.apache.commons.jxpath.JXPathContext;
import聽org.apache.commons.jxpath.XMLDocumentContainer;
import聽org.hibernate.util.ConfigHelper;

publicclass聽SkynetConfig聽{
聽聽聽聽
聽聽聽聽
publicstaticfinal聽URL聽getResourceAsURL(final聽String聽path)聽{
聽聽聽聽聽聽聽聽URL聽url聽
=null;

聽聽聽聽聽聽聽聽
//聽First,聽try聽to聽locate聽this聽resource聽through聽the聽current
聽聽聽聽聽聽聽聽
//聽context聽classloader.
聽聽聽聽聽聽聽聽ClassLoader聽contextClassLoader聽=聽Thread.currentThread().getContextClassLoader();
聽聽聽聽聽聽聽聽
if聽(contextClassLoader!=null)聽{
聽聽聽聽聽聽聽聽聽聽聽聽url聽
=聽contextClassLoader.getResource(path);
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
if聽(url聽!=null)
聽聽聽聽聽聽聽聽聽聽聽聽
return聽url;

聽聽聽聽聽聽聽聽
//聽Next,聽try聽to聽locate聽this聽resource聽through聽this聽class's聽classloader
聽聽聽聽聽聽聽聽url聽=聽ConfigHelper.class.getClassLoader().getResource(path);
聽聽聽聽聽聽聽聽
if聽(url聽!=null)
聽聽聽聽聽聽聽聽聽聽聽聽
return聽url;
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
//聽Next,聽try聽to聽locate聽this聽resource聽through聽the聽system聽classloader
聽聽聽聽聽聽聽聽url聽=聽ClassLoader.getSystemClassLoader().getResource(path);
聽聽聽聽聽聽聽聽
if(url聽!=null)
聽聽聽聽聽聽聽聽聽聽聽聽
return聽url;
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽File聽ff聽
=聽getResourceAsFile(System.getProperty("user.dir")聽,path);
聽聽聽聽聽聽聽聽
if(ff==null)
聽聽聽聽聽聽聽聽聽聽聽聽ff聽
=聽getResourceAsFile(System.getProperty("java.class.path")聽,聽path);
聽聽聽聽聽聽聽聽
try聽{
聽聽聽聽聽聽聽聽聽聽聽聽url聽
=new聽URL("file:/"+ff.getPath());
聽聽聽聽聽聽聽聽}聽
catch聽(Exception聽e)聽{e.printStackTrace();}
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
return聽url;
聽聽聽聽}
聽聽聽聽
聽聽聽聽
publicstatic聽InputStream聽getResourceAsStream(final聽String聽resource)聽{
聽聽聽聽聽聽聽聽String聽stripped聽
=聽resource.startsWith("/")聽?
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽resource.substring(
1)聽:聽resource;
聽聽聽聽聽聽聽聽InputStream聽stream聽
=null;聽
聽聽聽聽聽聽聽聽ClassLoader聽classLoader聽
=聽Thread.currentThread().getContextClassLoader();
聽聽聽聽聽聽聽聽
if聽(classLoader!=null)聽{
聽聽聽聽聽聽聽聽聽聽聽聽stream聽
=聽classLoader.getResourceAsStream(聽stripped聽);
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
if聽(聽stream聽==null聽)聽{
聽聽聽聽聽聽聽聽聽聽聽聽SkynetConfig.
class.getResourceAsStream(聽resource聽);
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
if聽(聽stream聽==null聽)聽{
聽聽聽聽聽聽聽聽聽聽聽聽stream聽
=聽SkynetConfig.class.getClassLoader().getResourceAsStream(聽stripped聽);
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
if聽(聽stream聽==null聽)聽{
聽聽聽聽聽聽聽聽聽聽聽聽File聽ff聽
=聽getResourceAsFile(System.getProperty("user.dir")聽,resource);
聽聽聽聽聽聽聽聽聽聽聽聽
if(ff==null)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽ff聽
=聽getResourceAsFile(System.getProperty("java.class.path")聽,聽resource);
聽聽聽聽聽聽聽聽聽聽聽聽
try聽{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽stream聽
=new聽FileInputStream(ff);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if(stream==null)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
thrownew聽Exception(聽resource聽+"聽not聽found"聽);
聽聽聽聽聽聽聽聽聽聽聽聽}聽
catch聽(Exception聽e)聽{e.printStackTrace();}
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
return聽stream;
聽聽聽聽}
聽聽聽聽
聽聽聽聽
publicstatic聽File聽getResourceAsFile(String聽str,String聽findff){
聽聽聽聽聽聽聽聽String[]聽sfd聽
=聽str.split(";");
聽聽聽聽聽聽聽聽
for(int聽i=0;i<sfd.length;i++){
聽聽聽聽聽聽聽聽聽聽聽聽File聽file聽
=new聽File(sfd[i]);
聽聽聽聽聽聽聽聽聽聽聽聽
if(聽file.isDirectory()){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽File[]聽cfs聽
=聽file.listFiles();
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
for(int聽j=0;j<cfs.length;j++){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽File聽ff聽
=聽findFile(cfs[j],findff);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if(ff==null)continue;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
elsereturn聽ff;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
returnnull聽;
聽聽聽聽}
聽聽聽聽
聽聽聽聽
privatestatic聽File聽findFile(File聽file,String聽findff){
聽聽聽聽聽聽聽聽
if(file.isFile()聽&&聽file.exists()聽&&聽isFileEqu(file,findff)聽聽)聽return聽file聽;
聽聽聽聽聽聽聽聽
elseif(聽file.isDirectory()聽){
聽聽聽聽聽聽聽聽聽聽聽聽File[]聽cfs聽
=聽file.listFiles();
聽聽聽聽聽聽聽聽聽聽聽聽
for(int聽i=0;i<cfs.length;i++){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽File聽ff聽
=聽findFile(cfs[i],findff);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if(ff==null)continue;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
if(聽isFileEqu(ff,findff)聽){
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
return聽ff;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽
returnnull聽;
聽聽聽聽}
聽聽聽聽
聽聽聽聽
privatestaticboolean聽isFileEqu(File聽ff,String聽findff){
聽聽聽聽聽聽聽聽String聽path聽
=聽ff.getPath().trim()聽;
聽聽聽聽聽聽聽聽String聽findfft聽
=聽findff.trim()聽;
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
if(聽path.lastIndexOf(聽findfft聽)>0)returntrue;
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
returnfalse;
聽聽聽聽}

}





G_G 2007-10-10 14:50 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 深夜国产福利99亚洲视频| 99国产精品免费观看视频| 亚洲视频手机在线| 亚洲成a人片在线播放| 一个人免费高清在线观看| 久久精品无码精品免费专区| 人成午夜免费大片在线观看| 亚洲成av人在线观看网站| 亚洲精品午夜视频| 亚洲av丰满熟妇在线播放| 国产亚洲精品精品国产亚洲综合| 高清国语自产拍免费视频国产| 免免费国产AAAAA片| 最近新韩国日本免费观看| 久久精品国产免费一区| 不卡视频免费在线观看| 一级一看免费完整版毛片| 日韩精品无码免费视频| 亚洲AV无码AV日韩AV网站| 亚洲爆乳无码精品AAA片蜜桃| 亚洲一区二区三区免费观看| 亚洲精品在线网站| 久久狠狠高潮亚洲精品| 亚洲黄色网址大全| 亚洲日韩图片专区第1页| 亚洲一级二级三级不卡| 色播亚洲视频在线观看| 1区1区3区4区产品亚洲| 亚洲综合图片小说区热久久| 久久精品蜜芽亚洲国产AV| 亚洲视频一区网站| 亚洲午夜电影在线观看| 亚洲噜噜噜噜噜影院在线播放 | 国产亚洲人成在线播放| 亚洲国产精品成人午夜在线观看| 亚洲女子高潮不断爆白浆| 亚洲精品无码久久久久秋霞| 亚洲精品无码永久在线观看男男 | 免费大片黄在线观看yw| 久久久久久久免费视频| 成人黄页网站免费观看大全 |