??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲高清成人,成人欧美一区二区三区在线,日本又骚又刺激的视频在线观看http://www.aygfsteel.com/tw-ddm/category/8272.html<div id="ddm_subTitle"> <h2 class="catchline"> 哪怕没有办法一定有说法,<br/> q没有鸽子一定有乌鸦,<br/> 固执无罪&nbsp;梦想有h(hun),<br/> 让他们惊? </h2> </div>zh-cnThu, 01 Mar 2007 00:02:39 GMTThu, 01 Mar 2007 00:02:39 GMT60货币金额大写http://www.aygfsteel.com/tw-ddm/articles/79485.html大大?/dc:creator>大大?/author>Mon, 06 Nov 2006 14:29:00 GMThttp://www.aygfsteel.com/tw-ddm/articles/79485.htmlhttp://www.aygfsteel.com/tw-ddm/comments/79485.htmlhttp://www.aygfsteel.com/tw-ddm/articles/79485.html#Feedback0http://www.aygfsteel.com/tw-ddm/comments/commentRss/79485.htmlhttp://www.aygfsteel.com/tw-ddm/services/trackbacks/79485.html阅读全文

]]>
eclipse布vweb应用旉到的问题http://www.aygfsteel.com/tw-ddm/articles/61317.html大大?/dc:creator>大大?/author>Wed, 02 Aug 2006 03:34:00 GMThttp://www.aygfsteel.com/tw-ddm/articles/61317.htmlhttp://www.aygfsteel.com/tw-ddm/comments/61317.htmlhttp://www.aygfsteel.com/tw-ddm/articles/61317.html#Feedback0http://www.aygfsteel.com/tw-ddm/comments/commentRss/61317.htmlhttp://www.aygfsteel.com/tw-ddm/services/trackbacks/61317.html
 (tng) (tng) (tng)q行环境Q?br /> (tng) (tng) (tng) (tng) (tng) (tng)JDK1.4QEclipse3.1QMyeclipse4.0QTomcat5.5

 (tng) (tng) (tng)现象Q?br /> (tng) (tng) (tng) (tng) (tng) (tng)在eclipse中对应用q行调整后进行重布vQ提C布v成功Q重启Tomcat后没有Q意变化?br />
 (tng) (tng) (tng)原因Q?br /> (tng) (tng) (tng) (tng) (tng) (tng)׃我重做了(jin)pȝQ以?web 应用所引用的包路径发生?jin)变?该包q没有在应用中直接引?Q但是由于在 tomcat/commons/lib 下已l手工添加了(jin)包,因此q行时正常,但是?eclipse 目上可见到错误提示(没注意啊)Q结果造成布v的失?提示上可是说布v成功??br />
 (tng) (tng) (tng)后话Q?br /> (tng) (tng) (tng) (tng) (tng) (tng)后来想了(jin)下,原因有可能是׃目存在着错误Q因?eclipse q没有对新的 java q行重新~译Q因此不论怎么d|实际上都是用出现错误之前的最后一ơ编译出来的 class 文g去进行布|Ԍ所?java 文g中的更改q不?x)生Q何效果?br />

]]>
l计中英文字数的单方?/title><link>http://www.aygfsteel.com/tw-ddm/articles/41397.html</link><dc:creator>大大?/dc:creator><author>大大?/author><pubDate>Sun, 16 Apr 2006 16:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/tw-ddm/articles/41397.html</guid><wfw:comment>http://www.aygfsteel.com/tw-ddm/comments/41397.html</wfw:comment><comments>http://www.aygfsteel.com/tw-ddm/articles/41397.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tw-ddm/comments/commentRss/41397.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tw-ddm/services/trackbacks/41397.html</trackback:ping><description><![CDATA[ <font size="2"> (tng) (tng) (tng) M(jin)M前积累下的一些资料,看到其中有一个统计中英文字符数的例子Q很单,感觉也比较有意思,一直以来都没有q么Lq问题,现在把它C来?br /></font> <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"> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff">import</span> <span style="COLOR: #000000"> (tng)java.io.</span> <span style="COLOR: #000000">*</span> </font> <font size="2"> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img id="Codehighlighter1_37_977_Open_Image" onclick="this.style.display='none'; Codehighlighter1_37_977_Open_Text.style.display='none'; Codehighlighter1_37_977_Closed_Image.style.display='inline'; Codehighlighter1_37_977_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_37_977_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_37_977_Closed_Text.style.display='none'; Codehighlighter1_37_977_Open_Image.style.display='inline'; Codehighlighter1_37_977_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000"> (tng)Test (tng)</span> <span id="Codehighlighter1_37_977_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://www.aygfsteel.com/images/dot.gif" /> </span> </font> <span id="Codehighlighter1_37_977_Open_Text"> <font size="2"> <span style="COLOR: #000000">{<br /><img id="Codehighlighter1_40_86_Open_Image" onclick="this.style.display='none'; Codehighlighter1_40_86_Open_Text.style.display='none'; Codehighlighter1_40_86_Closed_Image.style.display='inline'; Codehighlighter1_40_86_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_40_86_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_40_86_Closed_Text.style.display='none'; Codehighlighter1_40_86_Open_Image.style.display='inline'; Codehighlighter1_40_86_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng)</span> <span id="Codehighlighter1_40_86_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">/** (tng)*/</span> </font> <span id="Codehighlighter1_40_86_Open_Text"> <span style="COLOR: #008000"> <font size="2">/**</font> </span> <span style="COLOR: #008000"> <br /> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng)* (tng)l计字串中中文字W数?br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng)* (tng)</font> </span> <span style="COLOR: #808080"> <font size="2">@param</font> </span> <font size="2"> <span style="COLOR: #008000"> (tng)str:GB~码字符?br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #008000">*/</span> </font> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img id="Codehighlighter1_136_427_Open_Image" onclick="this.style.display='none'; Codehighlighter1_136_427_Open_Text.style.display='none'; Codehighlighter1_136_427_Closed_Image.style.display='inline'; Codehighlighter1_136_427_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /> <img id="Codehighlighter1_136_427_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_136_427_Closed_Text.style.display='none'; Codehighlighter1_136_427_Open_Image.style.display='inline'; Codehighlighter1_136_427_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng)</font> </span> <font size="2"> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)statGBCharCount1(String (tng)str) (tng)</span> <span id="Codehighlighter1_136_427_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://www.aygfsteel.com/images/dot.gif" /> </span> </font> <span id="Codehighlighter1_136_427_Open_Text"> <font size="2"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)GBCount (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> </font> <font size="2"> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)otherStr (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">null</span> </font> <font size="2"> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /><img id="Codehighlighter1_192_297_Open_Image" onclick="this.style.display='none'; Codehighlighter1_192_297_Open_Text.style.display='none'; Codehighlighter1_192_297_Closed_Image.style.display='inline'; Codehighlighter1_192_297_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_192_297_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_192_297_Closed_Text.style.display='none'; Codehighlighter1_192_297_Open_Image.style.display='inline'; Codehighlighter1_192_297_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">try</span> <span id="Codehighlighter1_192_297_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://www.aygfsteel.com/images/dot.gif" /> </span> </font> <span id="Codehighlighter1_192_297_Open_Text"> <font size="2"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)otherStr (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000"> (tng)String(str.getBytes(),</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">ISO8859_1</span> <span style="COLOR: #000000">"</span> </font> <font size="2"> <span style="COLOR: #000000">);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)GBCount (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)otherStr.length() (tng)</span> <span style="COLOR: #000000">-</span> </font> <span style="COLOR: #000000"> <font size="2"> (tng)str.length();<br /><img id="Codehighlighter1_336_403_Open_Image" onclick="this.style.display='none'; Codehighlighter1_336_403_Open_Text.style.display='none'; Codehighlighter1_336_403_Closed_Image.style.display='inline'; Codehighlighter1_336_403_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_336_403_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_336_403_Closed_Text.style.display='none'; Codehighlighter1_336_403_Open_Image.style.display='inline'; Codehighlighter1_336_403_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</font> </span> </span> <font size="2"> <span style="COLOR: #0000ff">catch</span> <span style="COLOR: #000000">(UnsupportedEncodingException (tng)ex)</span> <span id="Codehighlighter1_336_403_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://www.aygfsteel.com/images/dot.gif" /> </span> </font> <span id="Codehighlighter1_336_403_Open_Text"> <font size="2"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">throw</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000"> (tng)RuntimeException(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">UnsupportedEncodingException</span> <span style="COLOR: #000000">"</span> </font> <span style="COLOR: #000000"> <font size="2">);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)}</font> </span> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</font> </span> <span style="COLOR: #0000ff"> <font size="2">return</font> </span> <span style="COLOR: #000000"> <font size="2"> (tng)GBCount;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng)}</font> </span> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img id="Codehighlighter1_430_453_Open_Image" onclick="this.style.display='none'; Codehighlighter1_430_453_Open_Text.style.display='none'; Codehighlighter1_430_453_Closed_Image.style.display='inline'; Codehighlighter1_430_453_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /> <img id="Codehighlighter1_430_453_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_430_453_Closed_Text.style.display='none'; Codehighlighter1_430_453_Open_Image.style.display='inline'; Codehighlighter1_430_453_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng)</font> </span> <span id="Codehighlighter1_430_453_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"> <font size="2">/** (tng)*/</font> </span> <span id="Codehighlighter1_430_453_Open_Text"> <span style="COLOR: #008000"> <font size="2">/**</font> </span> <span style="COLOR: #008000"> <br /> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng)* (tng)l计字串中中文字W数?br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng) (tng)</font> </span> <span style="COLOR: #008000"> <font size="2">*/</font> </span> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img id="Codehighlighter1_503_759_Open_Image" onclick="this.style.display='none'; Codehighlighter1_503_759_Open_Text.style.display='none'; Codehighlighter1_503_759_Closed_Image.style.display='inline'; Codehighlighter1_503_759_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /> <img id="Codehighlighter1_503_759_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_503_759_Closed_Text.style.display='none'; Codehighlighter1_503_759_Open_Image.style.display='inline'; Codehighlighter1_503_759_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng)</font> </span> <font size="2"> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)statGBCharCount2(String (tng)str) (tng)</span> <span id="Codehighlighter1_503_759_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://www.aygfsteel.com/images/dot.gif" /> </span> </font> <span id="Codehighlighter1_503_759_Open_Text"> <font size="2"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">int</span> <span style="COLOR: #000000"> (tng)GBCount (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">1</span> </font> <font size="2"> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)GBCount (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)str.replaceAll(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">[\u0000-\u0127]</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">""</span> </font> <font size="2"> <span style="COLOR: #000000">).length();<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">asc字符:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000"> (tng)str.replaceAll(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">[\u0000-\u0127]</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">""</span> </font> <font size="2"> <span style="COLOR: #000000">));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">非asc字符:</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #000000">+</span> <span style="COLOR: #000000"> (tng)str.replaceAll(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">[^\u0000-\u0127]</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">,</span> <span style="COLOR: #000000">""</span> </font> <font size="2"> <span style="COLOR: #000000">));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span> <span style="COLOR: #0000ff">return</span> </font> <span style="COLOR: #000000"> <font size="2"> (tng)GBCount;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng)}</font> </span> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng)<br /><img id="Codehighlighter1_803_974_Open_Image" onclick="this.style.display='none'; Codehighlighter1_803_974_Open_Text.style.display='none'; Codehighlighter1_803_974_Closed_Image.style.display='inline'; Codehighlighter1_803_974_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_803_974_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_803_974_Closed_Text.style.display='none'; Codehighlighter1_803_974_Open_Image.style.display='inline'; Codehighlighter1_803_974_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /> (tng) (tng) (tng) (tng)</font> </span> <font size="2"> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000"> (tng)main(String[] (tng)args) (tng)</span> <span id="Codehighlighter1_803_974_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://www.aygfsteel.com/images/dot.gif" /> </span> </font> <span id="Codehighlighter1_803_974_Open_Text"> <font size="2"> <span style="COLOR: #000000">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)str (tng)</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000"> (tng)</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">This (tng)is (tng)test (tng)string (tng)q是一个测试字W串</span> <span style="COLOR: #000000">"</span> </font> <font size="2"> <span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">中文字符?</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> </font> <font size="2"> <span style="COLOR: #000000"> (tng)Test.statGBCharCount1(str));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">中文字符?</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">+</span> </font> <span style="COLOR: #000000"> <font size="2"> (tng)Test.statGBCharCount2(str));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /> (tng) (tng) (tng) (tng)}</font> </span> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</font> </span> </span> <span style="COLOR: #000000"> <br /> <font size="2"> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> </font> </span> </div> <font size="2"> <br />可以看到Q方?中用的办法Q可能局限性更大,不过也是一U思\?br />自己想的是第2U方法,用正则表辑ּ直接qo(h)Q也挺快捗?/font> <img src ="http://www.aygfsteel.com/tw-ddm/aggbug/41397.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tw-ddm/" target="_blank">大大?/a> 2006-04-17 00:33 <a href="http://www.aygfsteel.com/tw-ddm/articles/41397.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>以前写的学生理pȝ(设计)http://www.aygfsteel.com/tw-ddm/articles/34400.html大大?/dc:creator>大大?/author>Wed, 08 Mar 2006 19:38:00 GMThttp://www.aygfsteel.com/tw-ddm/articles/34400.htmlhttp://www.aygfsteel.com/tw-ddm/comments/34400.htmlhttp://www.aygfsteel.com/tw-ddm/articles/34400.html#Feedback2http://www.aygfsteel.com/tw-ddm/comments/commentRss/34400.htmlhttp://www.aygfsteel.com/tw-ddm/services/trackbacks/34400.html 前言Q?/font>
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 以前上培训时的设计,是个作业Q不q我实现得比较麻?ch)一点,用上?jin)一些MVC的东东。不断在QQ上见到有h需要类似的东西Q是不是只要是毕业设计都是一L(fng)题目Q?img height="19" src="http://www.aygfsteel.com/Emoticons/thumbs_down.gif" width="19" border="0" />Q,所以放上来Q以后自׃可以用用?/font>

介如?
开发环?Win2k+JDK1.4.2
开发工?Eclipse3.0
数据环境:
 (tng) (tng) (tng) (tng) (tng) (tng) (tng)
SqlServer2000
开发?
 (tng) (tng) (tng) (tng) (tng) (tng) (tng)
个h
功能:
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 能够实现?表的演示Q学生的分组/分班Q对班及(qing)l还有学生进行增/??查操作,
在添加及(qing)修改Ӟq行序号以及(qing)名称的检查, 学生可以实现变更学号/名称/班/l等各项操作Q?/font> 可以在组览的表栏上右键单击Q将选定的学生从l中删除
使用注意Q?/strong>
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 已经打好Jar包,在DOS提示W下q行"java -jar students.jar"卛_。当然前提是Q?br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) 1.你安装有SqlServer2000Q?br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) 2.你导入我提供的student.sqlQ新Z(jin)一个数据库
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 3.你有SqlServer2000的驱动(?个Jar包,没有的自己去下)(j)Qƈ在查找\径之?br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) 4.你的SqlServerq接参数与我相同Q你可以解开包,q接参数我放在stendendts.common.InitcMQ自己去Ҏ(gu)好
l构说明:
 (tng) (tng) (tng) (tng) (tng) (tng) (tng)
已经q去?jin)很多时_(d)无话可说Q可以看看运行时的效果图Q?br />
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)效果?/a>

 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 功能不是很多的,够交pQ呵c(din)另外还有右键菜单等功能?br />拜托Q?br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) 有拿q个直接交设计的朋友Q记得把我的名字也写q去好了(jin)Q当q遗憄是我写得q么好却只刚?qing)格Q今天放上来才晓得是打包的时候少打了(jin)那个.classpath?project文g?jin),路径也不太对Q肯定是老师没法导入我这个工E,所以才那样?br />下蝲Q?br /> (tng) (tng) (tng) (tng) (tng) (tng)
students.rar



]]>
实现?wi)的c?/title><link>http://www.aygfsteel.com/tw-ddm/articles/34398.html</link><dc:creator>大大?/dc:creator><author>大大?/author><pubDate>Wed, 08 Mar 2006 18:22:00 GMT</pubDate><guid>http://www.aygfsteel.com/tw-ddm/articles/34398.html</guid><wfw:comment>http://www.aygfsteel.com/tw-ddm/comments/34398.html</wfw:comment><comments>http://www.aygfsteel.com/tw-ddm/articles/34398.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tw-ddm/comments/commentRss/34398.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tw-ddm/services/trackbacks/34398.html</trackback:ping><description><![CDATA[     摘要: JavaBeanc:(x)  (tng) (tng) (tng) (tng) (tng) (tng) (tng) DeptBeanQ用于支持那|(wi)Q因为是从以前作业中抠出来的Q所以肯定是不会(x)通用的,但是Ҏ(gu)再用q是可行的。import (tng)java.util.*;/** (tng)*//**用于支持部门的Tree视图 (tng)* (tng)@author (tng)tw (tng)* (tng)xx:主要是通过setRootDept()Ҏ(gu)来得C|(wi)所必须的数?所需参数指树(wi)从哪个部门开?我的table的结构如? (tng)*...  <a href='http://www.aygfsteel.com/tw-ddm/articles/34398.html'>阅读全文</a><img src ="http://www.aygfsteel.com/tw-ddm/aggbug/34398.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tw-ddm/" target="_blank">大大?/a> 2006-03-09 02:22 <a href="http://www.aygfsteel.com/tw-ddm/articles/34398.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>自己实现的一个ICQE序(得意之作?http://www.aygfsteel.com/tw-ddm/articles/34397.html大大?/dc:creator>大大?/author>Wed, 08 Mar 2006 18:07:00 GMThttp://www.aygfsteel.com/tw-ddm/articles/34397.htmlhttp://www.aygfsteel.com/tw-ddm/comments/34397.htmlhttp://www.aygfsteel.com/tw-ddm/articles/34397.html#Feedback0http://www.aygfsteel.com/tw-ddm/comments/commentRss/34397.htmlhttp://www.aygfsteel.com/tw-ddm/services/trackbacks/34397.html 前言Q?/font>
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) q是d来广州找工作之前写的Q预备在应聘时当砖头拿出来。结果没得逞,好象人家只要看看~程风格p?img height="19" src="http://www.aygfsteel.com/Emoticons/confused_smile.gif" width="19" border="0" />。不q全部是自己写的(从头到脚)Q结构也是自己想着去设计的Q里面有很多东西Q经帔R可以拿出来借鉴一下子.用处也算不小?br />

介如?
开发环?Win2k+JDK1.4.2
开发工?Eclipse3.0
数据环境:
 (tng) (tng) (tng) (tng) (tng) (tng) (tng)
access+软连接池,演示时容易沙
开发?
 (tng) (tng) (tng) (tng) (tng) (tng) (tng)
个h,原本?个h想着学点东西,l果没曾想那两个兄弟觉得ȝ(ch)?一个写?jin)不?00行的SOCKED通信,一个写?jin)N的聊天?
功能:
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 能够实现用户注册,d,查找(3U方?跟当q的QQ学的),聊天以及(qing)好友的上/下线提示{?..
使用注意Q?/strong>
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 一定要记得配数据源QZIP包中有说明的。不然无法工作?br />l构说明:
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) q个得要好好说一下,毕竟是心(j)血呕作啊。看看Socket的工作方式,是服务端用serversocket在指定端口侦听,客户端向此端口连接,一旦成功,则serversocket从阻塞状态中恢复Q生一个socket对象与之对应。结果生的是Socket的一对一(在QQ上听见Socket可以一对多Q不晓得咋整)。图C如?
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)ICQC意?/a>
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 其中客户端与服务端都是一L(fng)Socket对象Q可以封成一个类Q把输入侦听也封q去(它与其它的对象完全无?,输出留下一个接口,q个cL叫它"Linker"Q然后作为ICQ,每个客h当然是有ID和图?性别{信息的Q我把它攑օ"ClientInfo"c,q个cd际上是一个JavaBeanQ这样与数据库打交道时就比较好用?jin)。在q两个类的上一层我提供?jin)一?Client"再次了(jin)一下,它的最大用途是用于与消息分发器打交道,让它持有一个消息分发器的引用,q个cdƈ保留?jin)Linker的输出接口便于消息处理器调用。ؓ(f)?jin)实现Linker收到消息旉知ClientQ我使用?jin)观察者模?让Linker实现Observable接口Q而Clientl承至Observer.q样通讯的线路方面就搞定?jin)?br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) 在Client对象的管理上Qؓ(f)?jin)便于分l?QQ不也提供好友之类的么)。我提供?jin)一个ClientGroupcL放ClientQ提供两个实?已登?未登?来分开放,感觉上好一些。由于消息处理上l常需要调用Client对象Q把q个功能拿出来专门封在一个类中,我叫?ClientMangager"来管理那滑头的Client?br /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) 然后到重要的消息处理上了(jin)Q做?jin)一?MessageProcessor"的接口,让消息分发器"ServerMessageProcessor"和针对具体情늚消息处理器都实现q个接口Q由于ICQ的通讯是实时也是多对多的,只能采用队列+先进先出的方式,q样x(chng)可以处理一些状况了(jin)。分发器中持有一个HashMapQKey放上消息PValue放上处理器的引用。由控制器来兛_(j)如何L配好?jin)。这L(fng)考虑是Q如果后期有兴趣增加I(yng)CQ的功能,如传输文?囄{,比较简单了(jin)Q加一个消息号Q加一个消息处理器Q在控制器中向消息分发器d一个注册即可。感觉上q是个么事模式之cȝQ呵c(din)?br /> (tng) (tng) (tng) (tng) (tng) 服务端这边还剩一个端口侦听和数据处理?jin),端口侦听用?jin)一?PortListener"Q我把它攑֜common包中Q原来打是客户端那边以后实现客?客户交互的时候也能够用上。数据处理上用上学校里的例子Q有例子好啊Ҏ(gu)成自己的了(jin)。数据存取上为图方便采取的是直接对象存取(C++学习(fn)时的大禁?Q不它?jin),反正能用Q不q遗留下?jin)隐?zhn),一旦改动了(jin)一下类Q就M出来?jin)?br /> (tng) (tng) (tng) (tng) (tng) 服务端这Ҏ(gu)后再上一?Server"做ؓ(f)控制器,让它持有PortListener、ServerMessageProcessor、ServerClientMangerQ还是老套路用观察者模式与PortListener挂上勾。服务端OK?br /> (tng) (tng) (tng) (tng) (tng) 再到非常非常重要的消息上Q消息是多种多样的,每一个消息对应一个功能,来一个接口好?Message"Q该接口中还放上?jin)消息?final)q样~写的时候也q单直观得多了(jin)?br /> (tng) (tng) (tng) (tng) (tng) 到此Q时间已l过去N久,开始客L(fng)~程Q客L(fng)是要来上几个H体的,ȝ(ch)啊。根据功能分成多个JPanel/JFrame?jin),如登录窗口,昄聊天的面板,输?发送面板,好友昄的面板,q有查找好友。。。M耐心(j)快没?jin)。最后还是栽在了(jin)那个好友面板上,那个JList是个痛,我用上了(jin)ListCellRender渲染器,q个渲染器说实话q是蛮成功的Q但是整到JList中就不贼Q在单类的Main中演C都是好的。但是在最后的成果上就时灵时不灵,l常都会(x)出现JList白板一块的问题Q完全随机啊Q。后来思考了(jin)一下,怀疑是在构造函C调用太多东西的缘故,所以下载的朋友最后多试几ơ我保证能OKQ我咟?br /> (tng) (tng) (tng) (tng) (tng) 东西说得蛮多?jin),x(chng)为止Q眼见ؓ(f)实?br />拜托Q?/strong>
 (tng) (tng) (tng) (tng) (tng) (tng) (tng) 有研I的朋友能整好那个JList昄的问题,万望告之。。。?br />如实告之Q?/strong>
 (tng) (tng) (tng) (tng) (tng) (tng) Serverq边是先写的Q比较有耐心(j)QClient那边是先来写的,耐心(j)没了(jin)Q要评论的朋友多看看ServerQ好多留个面?br />下蝲Q?/strong>
 (tng) (tng) (tng) (tng) (tng)
MyICQ.zip



]]>
վ֩ģ壺 Dz| | ͨ| ƽ| | | ګ| ޳| | | ˮ| | | | | կ| | | | | ɽ| | | | ǰ| | | ¡| | | | ɽ| ɳ| | ƽ| ߰| ׯ| | | | ʦ|