锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲永久网址在线观看,丝袜熟女国偷自产中文字幕亚洲,亚洲AV无码XXX麻豆艾秋http://m.tkk7.com/magicblw/category/24960.html鐢熸椿鈾ユⅵ鎯籌紞錛? 姣忓ぉ閮借鎻愰啋鑷繁鍧氭寔鑷繁鐨勬ⅵ鎯?/description>zh-cnWed, 05 Dec 2012 15:30:38 GMTWed, 05 Dec 2012 15:30:38 GMT60寮傚父 Bad version number in .class filehttp://m.tkk7.com/magicblw/archive/2012/12/05/392473.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Wed, 05 Dec 2012 05:29:00 GMThttp://m.tkk7.com/magicblw/archive/2012/12/05/392473.htmlhttp://m.tkk7.com/magicblw/comments/392473.htmlhttp://m.tkk7.com/magicblw/archive/2012/12/05/392473.html#Feedback0http://m.tkk7.com/magicblw/comments/commentRss/392473.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/392473.html
  
java.lang.UnsupportedClassVersionError: Bad version number in .class file  錛?/span> 
鍚庢潵鎵嶅彂鐜?eclipse緙栬瘧鍜屽紩鐢ㄧ殑jdk鐗堟湰涓嶄竴鑷達紝緙栬瘧鍜屽紩鐢ㄧ殑jdk鍧囬渶瑕佸崟鐙緗傝寰椾笉鏂逛究銆?br />緙栬瘧璁劇疆璺緞錛?/span>Project->Properties->Java Compiler->Configure Workspace Setting

]]>
ibatis澶勭悊oracle鏁版嵁搴撲腑xmltype鐨勯棶棰?/title><link>http://m.tkk7.com/magicblw/archive/2012/11/20/391652.html</link><dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator><author>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author><pubDate>Tue, 20 Nov 2012 07:33:00 GMT</pubDate><guid>http://m.tkk7.com/magicblw/archive/2012/11/20/391652.html</guid><wfw:comment>http://m.tkk7.com/magicblw/comments/391652.html</wfw:comment><comments>http://m.tkk7.com/magicblw/archive/2012/11/20/391652.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/magicblw/comments/commentRss/391652.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/magicblw/services/trackbacks/391652.html</trackback:ping><description><![CDATA[     鎽樿: XMLTypeHandlerCallback ibatis  <a href='http://m.tkk7.com/magicblw/archive/2012/11/20/391652.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/magicblw/aggbug/391652.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/magicblw/" target="_blank">鎬庝箞緹℃厱澶╃┖鐨勯楦?/a> 2012-11-20 15:33 <a href="http://m.tkk7.com/magicblw/archive/2012/11/20/391652.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬紱繪暎鐐圭綉鏍?/title><link>http://m.tkk7.com/magicblw/archive/2009/02/13/254589.html</link><dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator><author>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author><pubDate>Fri, 13 Feb 2009 09:51:00 GMT</pubDate><guid>http://m.tkk7.com/magicblw/archive/2009/02/13/254589.html</guid><wfw:comment>http://m.tkk7.com/magicblw/comments/254589.html</wfw:comment><comments>http://m.tkk7.com/magicblw/archive/2009/02/13/254589.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/magicblw/comments/commentRss/254589.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/magicblw/services/trackbacks/254589.html</trackback:ping><description><![CDATA[         榪戞潵涓氬姟涓婃湁涓浜涢渶姹傦紝鏍規嵁涓浜涚鏁g偣鐢葷瓑鍊肩嚎錛岀涓姝ュ氨閬囧埌浜嗘彃鍊奸棶棰橈紝緗戜笂鐪嬩簡鐪嬶紝鎻掑兼湁寰堝綆楁硶錛岀敤鐨勬瘮杈冨鐨勬槸Kriging<span style="font-size: 10.5pt; font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">錛堝厠閲岄噾鎻掑兼硶錛夊拰涓夎緗戞硶錛屽笇鏈涙湁綆楁硶浠g爜鐨勫厔寮熷垎浜竴涓嬨傛垜鐨勯偖綆憋細<a href="mailto:softblw@yahoo.com.cn">softblw@yahoo.com.cn</a></span><br /> <img src ="http://m.tkk7.com/magicblw/aggbug/254589.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/magicblw/" target="_blank">鎬庝箞緹℃厱澶╃┖鐨勯楦?/a> 2009-02-13 17:51 <a href="http://m.tkk7.com/magicblw/archive/2009/02/13/254589.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璇鋒暀涓涓叧浜巆har鐨勯棶棰?/title><link>http://m.tkk7.com/magicblw/archive/2007/11/15/160702.html</link><dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator><author>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author><pubDate>Thu, 15 Nov 2007 02:49:00 GMT</pubDate><guid>http://m.tkk7.com/magicblw/archive/2007/11/15/160702.html</guid><wfw:comment>http://m.tkk7.com/magicblw/comments/160702.html</wfw:comment><comments>http://m.tkk7.com/magicblw/archive/2007/11/15/160702.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://m.tkk7.com/magicblw/comments/commentRss/160702.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/magicblw/services/trackbacks/160702.html</trackback:ping><description><![CDATA[    涓嬮潰鐨勭▼搴忔浼氳緭鍑轟粈涔堬紵鐭ラ亾鍘熷洜鐨勮璇存槑錛岃阿璋?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"><img id="Codehighlighter1_18_323_Open_Image" onclick="this.style.display='none'; Codehighlighter1_18_323_Open_Text.style.display='none'; Codehighlighter1_18_323_Closed_Image.style.display='inline'; Codehighlighter1_18_323_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_18_323_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_18_323_Closed_Text.style.display='none'; Codehighlighter1_18_323_Open_Image.style.display='inline'; Codehighlighter1_18_323_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> test </span><span id="Codehighlighter1_18_323_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_18_323_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> <br /> <img id="Codehighlighter1_46_85_Open_Image" onclick="this.style.display='none'; Codehighlighter1_46_85_Open_Text.style.display='none'; Codehighlighter1_46_85_Closed_Image.style.display='inline'; Codehighlighter1_46_85_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_46_85_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_46_85_Closed_Text.style.display='none'; Codehighlighter1_46_85_Open_Image.style.display='inline'; Codehighlighter1_46_85_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> func(</span><span style="color: #0000ff">int</span><span style="color: #000000"> i)</span><span id="Codehighlighter1_46_85_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_46_85_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">invoke int</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_114_156_Open_Image" onclick="this.style.display='none'; Codehighlighter1_114_156_Open_Text.style.display='none'; Codehighlighter1_114_156_Closed_Image.style.display='inline'; Codehighlighter1_114_156_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_114_156_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_114_156_Closed_Text.style.display='none'; Codehighlighter1_114_156_Open_Image.style.display='inline'; Codehighlighter1_114_156_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> func(String i)</span><span id="Codehighlighter1_114_156_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_114_156_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">invoke String</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_183_223_Open_Image" onclick="this.style.display='none'; Codehighlighter1_183_223_Open_Text.style.display='none'; Codehighlighter1_183_223_Closed_Image.style.display='inline'; Codehighlighter1_183_223_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_183_223_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_183_223_Closed_Text.style.display='none'; Codehighlighter1_183_223_Open_Image.style.display='inline'; Codehighlighter1_183_223_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> func(</span><span style="color: #0000ff">byte</span><span style="color: #000000"> i)</span><span id="Codehighlighter1_183_223_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_183_223_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">invoke byte</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    <br /> <img id="Codehighlighter1_265_321_Open_Image" onclick="this.style.display='none'; Codehighlighter1_265_321_Open_Text.style.display='none'; Codehighlighter1_265_321_Closed_Image.style.display='inline'; Codehighlighter1_265_321_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_265_321_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_265_321_Closed_Text.style.display='none'; Codehighlighter1_265_321_Open_Image.style.display='inline'; Codehighlighter1_265_321_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String []arg)</span><span id="Codehighlighter1_265_321_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_265_321_Open_Text"><span style="color: #000000">{<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    test test1</span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> test();<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">char</span><span style="color: #000000"> a</span><span style="color: #000000">=</span><span style="color: #000000">'</span><span style="color: #000000">a</span><span style="color: #000000">'</span><span style="color: #000000">;<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    test1.func(a);<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div> <img src ="http://m.tkk7.com/magicblw/aggbug/160702.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/magicblw/" target="_blank">鎬庝箞緹℃厱澶╃┖鐨勯楦?/a> 2007-11-15 10:49 <a href="http://m.tkk7.com/magicblw/archive/2007/11/15/160702.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦╦sp鐜涓厤緗嬌鐢‵CKEditor錛堣漿杞斤級http://m.tkk7.com/magicblw/archive/2007/09/27/148722.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Thu, 27 Sep 2007 07:06:00 GMThttp://m.tkk7.com/magicblw/archive/2007/09/27/148722.htmlhttp://m.tkk7.com/magicblw/comments/148722.htmlhttp://m.tkk7.com/magicblw/archive/2007/09/27/148722.html#Feedback1http://m.tkk7.com/magicblw/comments/commentRss/148722.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/148722.html           FCKeditor鏄痵ourceforge.net涓婇潰鐨勪竴涓紑婧愰」鐩紝涓昏鏄疄鐜板湪綰跨綉欏電紪杈戝櫒鐨勫姛鑳斤紝鍙互璁﹚eb紼嬪簭鎷ユ湁濡侻S Word榪欐牱寮哄ぇ鐨勭紪杈戝姛鑳姐傚畼鏂圭綉绔欎負http://www.fckeditor.net 錛屽湪鏈嶅姟鍣ㄧ鏀寔ASP.Net銆丄SP銆丆lodFusion銆丳HP銆?a class="bluekey" target="_blank">Java絳夎璦錛屽茍涓旀敮鎸両E 5+銆丮ozilla 銆丯etscape絳変富嫻佹祻瑙堝櫒銆?

銆銆棣栧厛鍦ㄥ畼鏂圭綉绔欎笅杞絝ckeditor,娉ㄦ剰鏈変袱涓寘錛屼竴涓槸涓繪枃浠訛紝涓涓槸jsp鏁村悎鍖呯殑銆?/p>

銆銆1銆?/strong>瑙e帇FCKeditor_2.2.zip,(FCKeditor涓繪枃浠?錛屽皢FCKeditor鐩綍澶嶅埗鍒扮綉绔欐牴鐩綍涓嬶紝

銆銆2銆?/strong>瑙e帇FCKeditor-2.3.zip,(jsp,FCKeditor鏁村悎鍖?錛屼綔鐢細This is the JSP Integration Pack for using FCKeditor inside a java server page without the complexity of using a Java scriptlets or the javascript api.

銆銆3銆?/strong>灝咶CKeditor-2.3/web/WEB-INF/web.xml涓殑涓や釜servlet,servlet-mapping瀹氫箟澶嶅埗鍒拌嚜宸查」鐩殑web.xml鏂囦歡涓?br /> 淇敼

<servlet-mapping>  
        
<servlet-name>Connector</servlet-name>  
        
<url-pattern>/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>  
    
</servlet-mapping>  

    
<servlet-mapping>  
        
<servlet-name>SimpleUploader</servlet-name>  
        
<url-pattern>/editor/filemanager/upload/simpleuploader</url-pattern>  
 
</servlet-mapping>

涓?br />
<servlet-mapping>  
        
<servlet-name>Connector</servlet-name>  
        
<url-pattern>/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector</url-pattern>  
    
</servlet-mapping>  

    
<servlet-mapping>  
        
<servlet-name>SimpleUploader</servlet-name>  
        
<url-pattern>/FCKeditor/editor/filemanager/upload/simpleuploader</url-pattern>  
  
</servlet-mapping>

        4銆?/strong>灝咶CKeditor-2.3/web/WEB-INF/lib鐩綍涓嬫枃浠跺鍒跺埌鑷凡欏圭洰鐨刲ib鏂囦歡澶逛腑

銆銆5銆?/strong>鍦ㄩ渶浣跨敤FCKeditor鐨刯sp鐣岄潰涓姞鍏ワ細

// 鏂囦歡寮澶村鍔犲叆  
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>  
//瑕佷嬌鐢ㄧ殑鍦版柟鍔犲叆  
<FCK:editor id="content" basePath="/FCKeditor/"  
                                imageBrowserURL
="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"  
                                linkBrowserURL
="/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"  
                                flashBrowserURL
="/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"  
                                imageUploadURL
="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"  
                                linkUploadURL
="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"  
                                flashUploadURL
="/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash">  
            
this is default content :)  
</FCK:editor>

          鍚姩鏈嶅姟鍣ㄦ祴璇曘傘傘傘傛垚鍔熷悗錛屾潵緇橣CKeditor鐦︾槮韜? 

銆銆1銆?/strong>灝咶CKeditor鐩綍涓嬪強瀛愮洰褰曚笅鎵鏈変互”_”涓嬪垝綰垮紑澶寸殑鏂囦歡澶瑰垹闄?br /> 銆銆2.FCKeditor鏍圭洰褰曚笅鍙繚鐣檉ckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml鍏朵綑鍏ㄩ儴鍒犻櫎
銆銆3.灝唀ditor/filemanager/upload鐩綍涓嬫枃浠跺強鏂囦歡澶規竻絀?
銆銆4.榪樺彲浠ュ皢editor/skins鐩綍涓嬬殑鐨偆鏂囦歡鍒犻櫎錛屽彧鐣欎笅default涓濂楃毊鑲わ紙濡傛灉浣犱笉闇瑕佹崲鐨偆鐨勮瘽錛?br /> 銆銆5.榪樺彲浠ュ皢editor/lang鐩綍涓嬫枃浠跺垹闄わ紝鍙繚鐣檈n.js, fcklanguagemanager.js, zh-cn.js, zh.js鏂囦歡錛堣嫳鏂囷紝綆浣撲腑鏂囷紝綣佷綋涓枃涓鑸簲璇ュ鐢ㄤ簡:) 錛?/p>

銆銆瀹屾垚錛岀幇鍦ㄧ湅鏄笉鏄竻鐖戒簡寰堝錛?br />
        鍏跺畠闂錛?/strong>
銆銆鍦╯truts+spring+hibernate涓嬌鐢紝涓婁紶鍥懼儚鍔熻兘涓彲鑳戒細鍑虹幇鎶ワ細
銆銆The output format must have a ‘{http://xml.apache.org/xalan}content-handler’ property!
銆銆閿欑殑鎯呭喌錛屽皢WEB-INF/lib鐩綍涓媥alan*.jar鍒犻櫎璇曡瘯

銆銆瀹夊叏闂錛?/strong>
銆銆鍋囧鍦ㄥ墠鍙拌鏅氱敤鎴蜂篃鑳戒嬌鐢‵CKEditor,瑕佹敞鎰忕浉鍏沖畨鍏ㄩ棶棰?鍦ㄥ墠鍙頒嬌鐢ㄦ椂,涓嶈浣跨敤榛樿鐨凾oolBar錛?br /> 銆銆瑕佸皢娣誨姞鍥懼儚錛宖lash錛屽浘鍍忓煙鎸夐挳鍘繪帀
鍦╢ckconfig.js涓ぇ綰?8琛岄厤緗?nbsp; 閭d簺鏁扮粍涓殑鍊煎氨鍍忓綋浜庣晫闈笂鐨勪竴涓姛鑳斤紝浣犲彲浠ュ己琛屾妸姣忕粍鍊艱瘯鍑烘潵浠h〃浠涔堛?/p>

銆銆鍒版瀹夎FCKeditor灝卞畬鎴愪簡錛岀浉鍏寵緇嗛厤緗綘鍙互鐪婩CKeditor-2.3.zip,(jsp,FCKeditor鏁村悎鍖?鏂囦歡澶逛腑web/_samples鐩綍涓嬬殑渚嬪瓙銆?br />

         杞澆鑷細http://homepage.yesky.com/253/2615753.shtml



]]>
榪滅▼鍚姩weblogic鐨勯棶棰橈紵http://m.tkk7.com/magicblw/archive/2007/09/25/148150.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Tue, 25 Sep 2007 15:09:00 GMThttp://m.tkk7.com/magicblw/archive/2007/09/25/148150.htmlhttp://m.tkk7.com/magicblw/comments/148150.htmlhttp://m.tkk7.com/magicblw/archive/2007/09/25/148150.html#Feedback1http://m.tkk7.com/magicblw/comments/commentRss/148150.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/148150.html       solaris10瀹夎浜嗚嫳鏂囧拰涓枃鍖咃紙涔熷氨鏄彲浠ョ櫥褰曞埌涓枃鎴栬嫳鏂囩殑鎿嶄綔鐣岄潰錛夛紝鍦╯olaris10涓婂畨瑁呬簡weblogic92騫朵笖鍚屾椂閮ㄧ講浜嗚嚜宸辯殑鍩燂紝鍚嶅瓧鏄痜ile_domain銆?br />    
     闂鎻忚堪錛?br />      涓錛氶氳繃xwindows鎴杢elnet絳夎繙紼嬫柟寮忓惎鍔╳eblogic鏃訛紝weblogic鏈嶅姟騫朵笉鏄仛涓哄悗鍙扮▼搴忚繍琛岀殑錛岃屾槸鍜岀粓绔湇鍔¤仈緋誨湪涓璧楓傛瘮濡傞氳繃telnet錛屽惎鍔╳eblogic鍚庢棤娉曡繑鍥炲埌鍛戒護琛岋紝鍏蟲帀telnet鐨勫悓鏃秝eblogic鏈嶅姟鍚屾椂涔熷叧闂傞氳繃xwindow鍚姩weblogic錛寈window鍏抽棴鍚巜eblogic鏈嶅姟鍚屾椂涔熷叧闂簡銆?br />      浜岋細鍚姩weblogic鍚庯紝搴旂敤涓棤娉曡瘑鍒腑鏂囧瓧絎︺?br />
    瑙e喅闂涓錛?br />     鎴戠殑鐩爣灝辨槸閫氳繃榪滅▼鐨勬柟寮忚weblogic浣滀負鍚庡彴鏈嶅姟鍚姩錛屾煡璇簡涓浜涜祫鏂欏悗鍙戠幇鏈変袱縐嶆柟寮忥紝絎竴縐嶆祴璇曢氳繃錛岀浜岀榪樻湭嫻嬭瘯錛堟椂闂翠笉澶熶簡錛屽懙鍛碉級
        鏂瑰紡涓錛?br />         1.鍦ㄦ垜浠緩鐨勫煙鏂囦歡澶逛笅鏂板緩涓涓猙oot.properties鏂囦歡錛屾瘮濡傛垜鐨勫煙璺緞錛?#8220;c:/bea/user_projects/file_domain/”錛屾墦寮嬈℃枃浠跺茍娣誨姞鐧誨綍鐢ㄦ埛鐨勭敤鎴峰悕鍜屽瘑鐮佺瓑鍐呭錛坵eblogic鐨勭敓浜фā寮忥級錛氬涓嬫墍紺?br />          
username=weblogic
password
=weblogic

        2.鎵撳紑榪滅▼緇堢錛屽畾浣嶅埌weblogic鐨勫惎鍔ㄧ洰褰曪紝杈撳叆
nohup ./startWebLogic.sh
       weblogic鏈嶅姟鍙互浣滀負鍚庡彴鏈嶅姟鍚姩銆傝鏄庝竴涓嬶紝weblogic 鍚姩鏃朵粠boot.properties璇誨彇鐩稿簲鍐呭騫跺姞瀵嗕繚瀛樺埌servers鐩綍涓嬬殑鐩稿簲鐨勯厤緗枃浠躲俠oot.properties鍙搗涓嬈′綔鐢ㄣ?br />
      鏂瑰紡浜岋細淇敼shell鏂囦歡錛堜笉瀹夊叏錛夈?br />        1:瀹氫負鍒皊tartWebLogic.sh鏂囦歡錛岀紪杈戞鏂囦歡
WLS_USER="weblogic"
WLS_PW
="weblogic"


      2:瀹氫負鍒皐eblogic鍚姩鐩綍錛屽湪緇堢杈撳叆 nohup ./startWebLogic.sh銆?br />

      瑙e喅闂浜岋細
      闂铏界劧瑙e喅浜嗭紝浣嗗師鍥犺涓嶆竻妤氥?br />       1錛氱敤xwindow鐧誨綍solaris10錛屽茍閫夋嫨涓枃瀛楃闆嗐?br />       2錛氱敤緇堢鍚姩weblogic鏈嶅姟錛屾鏃剁殑weblogic鏈嶅姟鍙互璇嗗埆涓枃瀛楃銆傝屽叾瀹冪殑鏂瑰紡鍖呮嫭telnet鏂瑰紡鍚姩weblogic 鏈嶅姟閮芥棤娉曡瘑鍒腑鏂囥?/p>

]]>
鏌ョ湅鏁版嵁搴撹繛鎺ユ暟鐨剆ql璇彞http://m.tkk7.com/magicblw/archive/2007/09/12/144412.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Wed, 12 Sep 2007 01:33:00 GMThttp://m.tkk7.com/magicblw/archive/2007/09/12/144412.htmlhttp://m.tkk7.com/magicblw/comments/144412.htmlhttp://m.tkk7.com/magicblw/archive/2007/09/12/144412.html#Feedback0http://m.tkk7.com/magicblw/comments/commentRss/144412.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/144412.html        涓漢緇忓父鍦ㄦ祴璇曡蔣浠舵椂浣跨敤榪欎釜鍛戒護銆傚彲浠ユ湁鏁堟煡鐪嬫煇涓鐢ㄦ埛榪炴帴鏁版嵁搴撶殑瀹炰緥涓暟銆?/span>

select * from v$session where username is not null
select username,count(username) from v$session where username is not null group by username 


]]>
jsp甯歌闂錛堣漿杞斤級http://m.tkk7.com/magicblw/archive/2007/08/28/140544.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Tue, 28 Aug 2007 07:41:00 GMThttp://m.tkk7.com/magicblw/archive/2007/08/28/140544.htmlhttp://m.tkk7.com/magicblw/comments/140544.htmlhttp://m.tkk7.com/magicblw/archive/2007/08/28/140544.html#Feedback1http://m.tkk7.com/magicblw/comments/commentRss/140544.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/140544.htmlrequest.setCharacterEncoding("GB2312")

銆銆2銆佸湪JSP緗戦〉涓幏鍙栭〉闈㈢殑鍚嶇О錛?

request.getRequestURI() ;//鏂囦歡鍚?
request.getRequestURL() ;//鍏ㄩ儴url

銆銆3銆?欏甸潰涓嶄繚鐣欑紦瀛橈細

response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);

銆銆4銆佹棩鏈熸椂闂達紙鏈嶅姟鍣ㄧ錛?

String datestr ;
java.text.DateFormat df = new java.text.SimpleDateFormat("MM鏈坉d鏃?HH:mm E"); //榪欓噷鏍煎紡鍖?
datestr = df.format(new java.util.Date()) ;
out.println(datestr);

銆銆鎴栬?

錛? java.util.Date shijian= new java.util.Date();%錛?br>錛?=shijian.getYear()+1900%錛烇紲%=shijian.getMonth()+1%錛烇紲%=shijian.getDate()%錛?br>錛?=shijian.getHour()%錛烇紲%=shijian.getMinute()%錛?/p>

銆銆5銆乯ava涓繍鐢ㄦ鍒欍俲dk闇鏄?.4浠ヤ笂 import="java.util.regex.*

銆銆6銆佺偣鍚庨鏄劇ず緗戦〉榪囨湡

銆銆鍦ㄩ噷闈㈠姞浠ヤ笅浠g爜

錛淢ETA http-equiv=Pragma content=no-cache>
錛淢ETA http-equiv=Cache-Control content=no-cache>
錛淢ETA http-equiv=Expires content=0>

銆銆鍜?3 鍘熺悊涓鏍楓?

銆銆7銆佽綆楁墽琛屾墍鑺辮垂鐨勬椂闂?

銆銆浠g爜寮濮嬪彇鏃墮棿錛岀粨鏉熷悗鍙栨椂闂達紝鐩稿噺

long t1 = System.currentTimeMillis();
///////////////// your code
long t2 = System.currentTimeMillis() ;
long time = t2-t1;

銆銆8銆佸洓鑸嶄簲鍏ワ紝淇濈暀灝忔暟鐐瑰悗涓や綅灝忔暟錛?

import java.text.*;
NumberFormat nf=NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(2);
nf.setMinimumFractionDigits(2);
nf.format(numb);
鎴栬?+0.005 - 0.01)鍐嶅彇.鍚庝袱浣?

銆銆9銆乫orm鐨勯粯璁ゆ柟娉曟槸get.

銆銆post鏂瑰紡鏄悜鏈嶅姟鍣ㄤ紶閫佸ぇ瀹歸噺鏁版嵁鏃朵嬌鐢ㄧ殑鏂規硶銆傦紙鍐嶆墦寮涓涓猻ocket.?錛?

銆銆10銆?闃叉鐢ㄦ埛鐩存帴杈撳叆url榪涘幓欏甸潰錛?

銆銆涓 鏄湪瑕佽闂殑欏甸潰涓姞鍏ユ帶鍒?榪欎釜涓鑸敤session銆?

銆銆浜?鏄粠web鏈嶅姟鍣ㄦ帶鍒?瀵規煇涓鐩綍鐨勬墍鏈夎闂閫氳繃楠岃瘉.錛堟湁浜鴻鎶妀sp鏀懼埌web-inf涓嬶級

銆銆11銆佹暟鎹簱鏄痙atetime 鍨?錛屾彃鍏ュ綋鍓嶆椂闂村埌鏁版嵁搴擄細

java.sql.Date sqlDate = new java.sql.Date();
PreparedStatement pstmt = conn.prepareStatement("insert into foo(time) values(?)");
pstmt.setDate(1,sqlDate);
pstmt.executeUpdate();

銆銆鍏跺疄涓鑸暟鎹簱閮芥湁鑷繁鐨勭郴緇熸椂闂村嚱鏁般?

insert into foo(time) values(sysdate)

銆銆12銆?session瀛樺彇int綾誨瀷鐨勫彉閲忥細

session.setAttribute("int", i+""); //娉ㄦ剰榪欓噷i+""
int i = Integer.parseInt(session.getAttribute("int"));

銆銆session鐨勪竴浜涙蹇點?

銆銆鐢ㄦ埛鍦ㄦ祻瑙堢綉欏墊椂錛岀敱浜嶩ttp 鍗忚鏄竴縐嶆棤鐘舵佺殑鍗忚錛屽線寰鍦ㄤ笉鍚岀殑欏甸潰涔嬮棿瀛樺湪鏁版嵁浜ゆ崲鐨勯棶棰橈紝榪欏氨闇瑕佸湪榪欎簺涓嶅悓鐨勯〉闈箣闂村叡浜暟鎹傚父瑙佺殑瀹炵幇鏂規硶鏄妸瑕佸叡浜殑鏁版嵁淇濆瓨鍒癝ession 涓傛瘮濡傚湪鐢ㄦ埛鐧誨綍鐨勯〉闈腑鎶婁竴浜涚敤鎴風殑淇℃伅淇濆瓨鍒癝ession 涔嬩腑錛岀劧鍚庡湪鍏朵粬鐨勯〉闈腑璇誨彇鐢ㄦ埛鐨勪俊鎭傝繖浜涘叡浜殑鏁版嵁鍙互鏄瓧絎︿覆鎴栬呬笌Java 鐨勫師濮嬫暟鎹被鍨嬬浉鍏崇殑瀵硅薄錛屼篃鍙互鏄竴涓狫ava 瀵硅薄銆?

銆銆Session 鍙兘淇濆瓨瀵硅薄錛屼笉鑳戒繚瀛樺師濮嬬殑鏁版嵁綾誨瀷錛屾瘮濡傦細

session.setAttribute(“count”,10)

銆銆鏄潪娉曠殑璇彞錛屽鏋滆鎶婂間負10 鐨勬暣鏁頒繚瀛樺埌Session 涓紝闇瑕佷嬌鐢ㄤ互涓嬬殑鏂規硶錛?/p>

session.setAttribute(“count”,new Integer(10));

銆銆鐒跺悗鍦ㄥ彟涓涓〉闈腑浣跨敤錛?

(Integer)session.getAttribute(“count”)

銆銆鏉ユ妸榪欎釜鏁存暟璇誨彇鍑烘潵銆?

was涓緗彲浠ユ妸session鏀懼湪緋葷粺鐨勬暟鎹簱涓紝浣嗚繖鏍峰獎鍝嶆晥鐜囥俿ession澶у皬鏈濂戒笉瑕佸お澶?/p>

銆銆13銆佹妸瀛楃杞寲鎴怉SCII鐮?

int a='A'; out.println(a);

銆銆14銆丼tring s = new String("xyz");鍒涘緩浜嗕袱涓猄tring Object瀵硅薄錛屼竴涓槸“xyx”,涓涓槸鎸囧悜“xyx”鐨勫紩鐢ㄥ璞銆?

銆銆榪樻湁鍏稿瀷鐨別quals() 涓?== 榪欎釜鍙傝冨湪鍫嗘爤鍘熺悊銆?

銆銆15銆乻wtich涓嶈兘浣滅敤鍦╨ong涓婂拰String涓婏細

switch錛坋xpr1錛変腑錛宔xpr1鏄竴涓暣鏁拌〃杈懼紡銆備紶閫掔粰 switch 鍜?case 璇彞鐨勫弬鏁板簲璇ユ槸
int銆?short銆?char 鎴栬?byte銆俵ong,string 閮戒笉鑳戒綔鐢ㄤ簬swtich銆?

銆銆16銆丠ashtable鍜孒ashMap銆

銆銆Hashtable緇ф壙鑷狣ictionary綾伙紝鑰孒ashMap鏄疛ava1.2寮曡繘鐨凪ap interface鐨勪竴涓疄鐜癏ashMap鍏佽灝唍ull浣滀負涓涓猠ntry鐨刱ey鎴栬卾alue錛岃孒ashtable涓嶅厑璁窰ashtable鐨勬柟娉曟槸Synchronize鐨勶紝鑰孒ashMap涓嶆槸錛屽湪澶氫釜綰跨▼璁塊棶Hashtable鏃訛紝涓嶉渶瑕佽嚜宸變負瀹冪殑鏂規硶瀹炵幇鍚屾錛岃孒ashMap灝卞繀欏諱負涔嬫彁渚涘鍚屾銆?nbsp;




]]>
鎺ュ彛鍜屾娊璞$被http://m.tkk7.com/magicblw/archive/2007/08/22/138615.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Wed, 22 Aug 2007 07:03:00 GMThttp://m.tkk7.com/magicblw/archive/2007/08/22/138615.htmlhttp://m.tkk7.com/magicblw/comments/138615.htmlhttp://m.tkk7.com/magicblw/archive/2007/08/22/138615.html#Feedback2http://m.tkk7.com/magicblw/comments/commentRss/138615.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/138615.html         鍦?span lang=EN-US style="FONT-SIZE: 10pt">Java涓湅鍒版帴鍙o紝絎竴涓兂鍒扮殑鍙兘灝辨槸C++涓殑澶氶噸緇ф壙鍜?/span>Java涓殑鍙﹀涓涓叧閿瓧abstract銆備粠鍙﹀涓涓搴﹀疄鐜板閲嶇戶鎵挎槸鎺ュ彛鐨勫姛鑳戒箣涓錛屾帴鍙g殑瀛樺湪鍙互浣?/span>Java涓殑瀵硅薄鍙互鍚戜笂杞瀷涓哄涓熀綾誨瀷錛屽茍涓斿拰鎶借薄綾諱竴鏍峰彲浠ラ槻姝粬浜哄垱寤鴻綾葷殑瀵硅薄錛屽洜涓烘帴鍙d笉鍏佽鍒涘緩瀵硅薄銆?/span> 

interface鍏抽敭瀛楃敤鏉ュ0鏄庝竴涓帴鍙o紝瀹冨彲浠ヤ駭鐢熶竴涓畬鍏ㄦ娊璞$殑綾伙紝騫朵笖涓嶆彁渚涗換浣曞叿浣撳疄鐜般?/span>interface鐨勭壒鎬ф暣鐞嗗涓嬶細

1.        鎺ュ彛涓殑鏂規硶鍙互鏈夊弬鏁板垪琛ㄥ拰榪斿洖綾誨瀷錛屼絾涓嶈兘鏈変換浣曟柟娉曚綋銆?/span>

2.        鎺ュ彛涓彲浠ュ寘鍚瓧孌碉紝浣嗘槸浼氳闅愬紡鐨勫0鏄庝負static鍜?/span>final銆?/span>

3.        鎺ュ彛涓殑瀛楁鍙槸琚瓨鍌ㄥ湪璇ユ帴鍙g殑闈欐佸瓨鍌ㄥ尯鍩熷唴錛岃屼笉灞炰簬璇ユ帴鍙c?/span>

4.        鎺ュ彛涓殑鏂規硶鍙互琚0鏄庝負public鎴栦笉澹版槑錛屼絾緇撴灉閮戒細鎸夌収public綾誨瀷澶勭悊銆?/span>

5.        褰撳疄鐜頒竴涓帴鍙f椂錛岄渶瑕佸皢琚畾涔夌殑鏂規硶澹版槑涓?/span>public綾誨瀷鐨勶紝鍚﹀垯涓洪粯璁よ闂被鍨嬶紝Java緙栬瘧鍣ㄤ笉鍏佽榪欑鎯呭喌銆?/span>

6.        濡傛灉娌℃湁瀹炵幇鎺ュ彛涓墍鏈夋柟娉曪紝閭d箞鍒涘緩鐨勪粛鐒舵槸涓涓帴鍙c?/span>

7.        鎵╁睍涓涓帴鍙f潵鐢熸垚鏂扮殑鎺ュ彛搴斾嬌鐢ㄥ叧閿瓧extends錛屽疄鐜頒竴涓帴鍙d嬌鐢?/span>implements銆?/span>

interface鍦ㄦ煇浜涘湴鏂瑰拰abstract鏈夌浉浼肩殑鍦版柟錛屼絾鏄噰鐢ㄥ摢縐嶆柟寮忔潵澹版槑綾諱富瑕佸弬鐓т互涓嬩袱鐐癸細

1.        濡傛灉瑕佸垱寤轟笉甯︿換浣曟柟娉曞畾涔夊拰鎴愬憳鍙橀噺鐨勫熀綾伙紝閭d箞灝卞簲璇ラ夋嫨鎺ュ彛鑰屼笉鏄娊璞$被銆?/span>

2.        濡傛灉鐭ラ亾鏌愪釜綾誨簲璇ユ槸鍩虹被錛岄偅涔堢涓涓夋嫨鐨勫簲璇ユ槸璁╁畠鎴愪負涓涓帴鍙o紝鍙湁鍦ㄥ繀欏昏鏈夋柟娉曞畾涔夊拰鎴愬憳鍙橀噺鐨勬椂鍊欙紝鎵嶅簲璇ラ夋嫨鎶借薄綾匯傚洜涓烘娊璞$被涓厑璁稿瓨鍦ㄤ竴涓垨澶氫釜琚叿浣撳疄鐜扮殑鏂規硶錛屽彧瑕佹柟娉曟病鏈夎鍏ㄩ儴瀹炵幇璇ョ被灝變粛鏄娊璞$被銆?/span>

 

浠ヤ笂灝辨槸鎺ュ彛鐨勫熀鏈壒鎬у拰搴旂敤鐨勯鍩燂紝浣嗘槸鎺ュ彛緇濅笉浠呬粎濡傛錛屽湪Java璇硶緇撴瀯涓紝鎺ュ彛鍙互琚祵濂楋紝鏃㈠彲浠ヨ鏌愪釜綾誨祵濂楋紝涔熷彲浠ヨ鎺ュ彛宓屽銆傝繖鍦ㄥ疄闄呭紑鍙戜腑鍙兘搴旂敤鐨勪笉澶氾紝浣嗕篃鏄畠鐨勭壒鎬т箣涓銆傞渶瑕佹敞鎰忕殑鏄紝鍦ㄥ疄鐜版煇涓帴鍙f椂錛屽茍涓嶉渶瑕佸疄鐜板祵濂楀湪鍏跺唴閮ㄧ殑浠諱綍鎺ュ彛錛岃屼笖錛?/span>private鎺ュ彛涓嶈兘鍦ㄥ畾涔夊畠鐨勭被涔嬪琚疄鐜般?/span>



]]>
綾繪柟娉曞彲浠ョ悊瑙d負闈欐佹柟娉曞悧http://m.tkk7.com/magicblw/archive/2007/08/22/138610.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Wed, 22 Aug 2007 06:42:00 GMThttp://m.tkk7.com/magicblw/archive/2007/08/22/138610.htmlhttp://m.tkk7.com/magicblw/comments/138610.htmlhttp://m.tkk7.com/magicblw/archive/2007/08/22/138610.html#Feedback4http://m.tkk7.com/magicblw/comments/commentRss/138610.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/138610.html
1錛岀被鏂規硶綾誨彉閲忔槸闈欐佹柟娉曪紝闈欐佹柟娉曞拰闈欐佸彉閲忓彲浠ョ湅浣滄槸鍏ㄥ眬鐨勩?br>2錛屽疄渚嬫柟娉曞拰鏄疄渚嬪彉閲忓彲浠ョ湅浣滄槸鐢辯被new鍑烘潵鐨勫璞★紝鏄眬閮ㄧ殑銆?br>
瑙勫垯錛?br>1錛屽叏灞鐨勫彲浠ヨ皟鐢ㄥ叏灞鐨?br>2錛屽眬閮ㄧ殑鍙互璋冪敤灞閮ㄧ殑
3錛屽眬閮ㄥ彲浠ヨ皟鐢ㄥ叏灞鐨?br>4錛屽叏灞涓嶅彲浠ョ洿鎺ヨ皟鐢ㄥ眬閮ㄧ殑
5錛屽疄渚嬫柟娉曞拰瀹炰緥鍙橀噺鍙彲浠ョ敱瀵硅薄寮曠敤錛岃岀被鏂規硶鍜岀被鍙橀噺鍙互鐢辯被鍚嶆垨瀵硅薄寮曠敤銆?br>
浠ヤ笂鏄嚜宸辯殑涓浜涚湅娉曪紝涓嶅鐨勫湴鏂硅鎸囨暀銆?

]]>
璁$畻浠繪剰2涓棩鏈熷唴鐨勫伐浣滄棩(鎽樻妱)http://m.tkk7.com/magicblw/archive/2007/08/21/138433.html鎬庝箞緹℃厱澶╃┖鐨勯楦?/dc:creator>鎬庝箞緹℃厱澶╃┖鐨勯楦?/author>Tue, 21 Aug 2007 11:11:00 GMThttp://m.tkk7.com/magicblw/archive/2007/08/21/138433.htmlhttp://m.tkk7.com/magicblw/comments/138433.htmlhttp://m.tkk7.com/magicblw/archive/2007/08/21/138433.html#Feedback0http://m.tkk7.com/magicblw/comments/commentRss/138433.htmlhttp://m.tkk7.com/magicblw/services/trackbacks/138433.html鎬濊礬涓嶉敊錛屽鏃墮棿鐨勬搷浣滄尯鍏ㄩ潰錛屽弬鑰冧竴涓嬨備唬鐮佸涓嬶細
package test;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
/**
 * 璁$畻浠繪剰2涓棩鏈熷唴鐨勫伐浣滄棩錛堟病鏈夎冭檻鍒板浐瀹氬亣鏃ワ級
 * @author blw
 *
 */
public class DateCal {

 /**
  * @param args
  */
 /*
  *
涓昏鎬濊礬錛?
瀵逛簬浠繪剰2涓棩鏈熸瘮濡傦細date_start=2006-10-1銆乨ate_end=2006-10-14 錛?br>棣栧厛璁$畻榪欒繛涓棩鏈熶箣闂寸殑鏃墮棿闂撮殧錛堝ぉ鏁幫級錛岀劧鍚庡垎鍒date_start 鍜宒ate_end 鍙栧緱瀹冧滑涓嬩竴涓槦鏈熶竴鐨勬棩鏈燂紝
榪欐牱灝卞彲浠ュ緱鍒頒竴涓柊鐨勫彲浠ユ暣闄?鐨勫畬鏁存棩鏈熼棿闅旓紙榪欎釜鏂扮殑鏃ユ湡闂撮殧宸茬粡鎶婃槦鏈熷嚑鐨勯棶棰樺墧鍑烘帀浜嗭級錛?br>鎹竴縐嶈娉曞氨鏄垜浠彲浠ュ緱鍒幫紝榪欎袱涓柊鐨勬棩鏈熶箣闂寸殑鍛ㄦ暟錛屾嬁榪欎釜鍛ㄦ暟涔樹互5灝辨槸宸ヤ綔鏃ユ湡浜嗭紙tmpWorkingDays錛夈?br>浣嗘槸榪欎釜鏃ユ湡騫朵笉鏄垜浠墍瑕佺殑鏃ユ湡錛屾帴涓嬫潵鎴戜滑瑕佸仛鐨勫氨鏄綆梔ate_start,date_end榪欎袱涓棩鏈熷浜庢牴鎹畠浠墍浜х敓鐨勬柊鐨勬棩鏈熶箣闂寸殑鏃墮棿鍋忕Щ閲忥紝
date_start鐨勫亸縐婚噺錛坉ate_start_change錛夋槸闇瑕佸姞鐨勶紝鑰宒ate_end鐨勮繖涓亸縐婚噺錛坉ate_end_change錛夋槸闇瑕佸噺鍘葷殑銆?
鏈鍚庢垜浠彧瑕佺敤tmpWorkingDays+date_start_change-date_end_change灝辨槸鎴戜滑鎵瑕佹眰鐨勫疄闄呭伐浣滄棩浜嗐?br>浠ヤ笅鏄墍鏈夊疄鐜頒唬鐮侊紙涓や釜鏃ユ湡璺ㄥ勾涔熸病鏈夐棶棰橈級銆?nbsp;
  *
  */
 public static void main(String[] args) {
  try {

   String strDateStart = "2007-8-1";
   String strDateEnd = "2007-8-21";
   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
   Date date_start = sdf.parse(strDateStart);
   Date date_end = sdf.parse(strDateEnd);
   DateCal app = new DateCal();
   Calendar cal_start = Calendar.getInstance();
   Calendar cal_end = Calendar.getInstance();
   cal_start.setTime(date_start);
   cal_end.setTime(date_end);
   System.out.println("鏄熸湡-->" + app.getChineseWeek(cal_start)
     + " 鏃ユ湡-->" + cal_start.get(Calendar.YEAR) + "-"
     + (cal_start.get(Calendar.MONTH) + 1) + "-"
     + cal_start.get(Calendar.DAY_OF_MONTH));
   System.out.println("鏄熸湡-->" + app.getChineseWeek(cal_end) + " 鏃ユ湡-->"
     + cal_end.get(Calendar.YEAR) + "-"
     + (cal_end.get(Calendar.MONTH) + 1) + "-"
     + cal_end.get(Calendar.DAY_OF_MONTH));
   System.out.println("宸ヤ綔鏃ヤ負-->"
     + app.getWorkingDay(cal_start, cal_end));
   System.out.println("浼戞伅鏃?->"+app.getHolidays(cal_start, cal_end));
  } catch (Exception e) {
   // TODO: handle exception
  }
 }

 public int getDaysBetween(java.util.Calendar d1, java.util.Calendar d2) {
  if (d1.after(d2)) { // swap dates so that d1 is start and d2 is end
   java.util.Calendar swap = d1;
   d1 = d2;
   d2 = swap;
  }
  int days = d2.get(java.util.Calendar.DAY_OF_YEAR)
    - d1.get(java.util.Calendar.DAY_OF_YEAR);
  int y2 = d2.get(java.util.Calendar.YEAR);
  if (d1.get(java.util.Calendar.YEAR) != y2) {
   d1 = (java.util.Calendar) d1.clone();
   do {
    days += d1.getActualMaximum(java.util.Calendar.DAY_OF_YEAR);
    d1.add(java.util.Calendar.YEAR, 1);
   } while (d1.get(java.util.Calendar.YEAR) != y2);
  }
  return days;
 }

 /**
  * 璁$畻2涓棩鏈熶箣闂寸殑鐩擱殧澶╂暟
  * @param d1
  * @param d2
  * @return
  */
 public int getWorkingDay(java.util.Calendar d1, java.util.Calendar d2) {
  int result = -1;
  if (d1.after(d2)) { // swap dates so that d1 is start and d2 is end
   java.util.Calendar swap = d1;
   d1 = d2;
   d2 = swap;
  }

  int betweendays = getDaysBetween(d1, d2);

 
  int charge_date = 0;
  int charge_start_date = 0;//寮濮嬫棩鏈熺殑鏃ユ湡鍋忕Щ閲?br>  int charge_end_date = 0;//緇撴潫鏃ユ湡鐨勬棩鏈熷亸縐婚噺
   // 鏃ユ湡涓嶅湪鍚屼竴涓棩鏈熷唴
   int stmp;
   int etmp;
   stmp = 7 - d1.get(Calendar.DAY_OF_WEEK);
   etmp = 7 - d2.get(Calendar.DAY_OF_WEEK);
   if (stmp != 0 && stmp != 6) {// 寮濮嬫棩鏈熶負鏄熸湡鍏拰鏄熸湡鏃ユ椂鍋忕Щ閲忎負0
    charge_start_date = stmp - 1;
   }
   if (etmp != 0 && etmp != 6) {// 緇撴潫鏃ユ湡涓烘槦鏈熷叚鍜屾槦鏈熸棩鏃跺亸縐婚噺涓?
    charge_end_date = etmp - 1;
   }
//  }
  result = (getDaysBetween(this.getNextMonday(d1), this.getNextMonday(d2)) / 7)
    * 5 + charge_start_date - charge_end_date;
  //System.out.println("charge_start_date>" + charge_start_date);
  //System.out.println("charge_end_date>" + charge_end_date);
  //System.out.println("between day is-->" + betweendays);
  return result;
 }

 public String getChineseWeek(Calendar date) {
  final String dayNames[] = { "鏄熸湡鏃?, "鏄熸湡涓", "鏄熸湡浜?, "鏄熸湡涓?, "鏄熸湡鍥?, "鏄熸湡浜?,
    "鏄熸湡鍏? };

  int dayOfWeek = date.get(Calendar.DAY_OF_WEEK);

  // System.out.println(dayNames[dayOfWeek - 1]);
  return dayNames[dayOfWeek - 1];

 }

 /**
  * 鑾峰緱鏃ユ湡鐨勪笅涓涓槦鏈熶竴鐨勬棩鏈?br>  *
  * @param date
  * @return
  */
 public Calendar getNextMonday(Calendar date) {
  Calendar result = null;
  result = date;
  do {
   result = (Calendar) result.clone();
   result.add(Calendar.DATE, 1);
  } while (result.get(Calendar.DAY_OF_WEEK) != 2);
  return result;
 }
 
 /**
  *
  * @param d1
  * @param d2
  * @return
  */
 public int getHolidays(Calendar d1,Calendar d2){
  return this.getDaysBetween(d1, d2)-this.getWorkingDay(d1, d2);
 
 }

}



]]>
主站蜘蛛池模板: 一级做性色a爰片久久毛片免费| 亚洲中文字幕乱码AV波多JI| 一级毛片高清免费播放| 四虎影视永久免费观看地址| 亚洲乱码中文字幕在线| 大地资源在线观看免费高清 | 亚洲精品乱码久久久久久蜜桃不卡 | 久草免费福利在线| 久久亚洲2019中文字幕| 一级中文字幕免费乱码专区| 国产亚洲精久久久久久无码AV| 久久九九免费高清视频| 久久久久久a亚洲欧洲AV| 99re在线精品视频免费| 亚洲AV成人噜噜无码网站| 香蕉视频在线观看免费国产婷婷| 国产亚洲一卡2卡3卡4卡新区| 免费又黄又爽的视频| 中文字幕无码免费久久9一区9 | 91成人在线免费观看| 中文文字幕文字幕亚洲色| 国产在线19禁免费观看| 三级黄色在线免费观看| 久久亚洲国产成人精品性色| 天天操夜夜操免费视频| 亚洲精品视频免费| 亚洲视频免费在线看| 国产成人免费福利网站| 中文字幕免费视频精品一| 亚洲国产美女精品久久| 国产一级一片免费播放i| 免费看搞黄视频网站| 精品国产日韩久久亚洲| 亚洲中文字幕在线观看| 黄页网站免费观看| 无码日韩人妻AV一区免费l| 亚洲国产精品自在在线观看| 永久免费观看的毛片的网站| 免费毛片在线看不用播放器| 一本色道久久88亚洲精品综合 | 欧美日韩亚洲精品|