锘??xml version="1.0" encoding="utf-8" standalone="yes"?>yy6080久久亚洲精品,亚洲成av人片在线看片,国产精品手机在线亚洲http://m.tkk7.com/nonels/category/34365.htmlzh-cnMon, 20 Oct 2008 18:15:47 GMTMon, 20 Oct 2008 18:15:47 GMT60JPBC ing錛?鐣欒█鏉夸箣涓夛細鐣欒█鏉縅SP浠g爜http://m.tkk7.com/nonels/archive/2008/10/16/234785.htmlnonelsnonelsThu, 16 Oct 2008 15:54:00 GMThttp://m.tkk7.com/nonels/archive/2008/10/16/234785.htmlhttp://m.tkk7.com/nonels/comments/234785.htmlhttp://m.tkk7.com/nonels/archive/2008/10/16/234785.html#Feedback0http://m.tkk7.com/nonels/comments/commentRss/234785.htmlhttp://m.tkk7.com/nonels/services/trackbacks/234785.html闃呰鍏ㄦ枃

nonels 2008-10-16 23:54 鍙戣〃璇勮
]]>
JPBC ing錛?鐣欒█鏉夸箣浜岋細澶勭悊jsp涓嚭鐜扮殑涓枃涔辯爜闂--瀛楃榪囨護鍣?/title><link>http://m.tkk7.com/nonels/archive/2008/10/16/234784.html</link><dc:creator>nonels</dc:creator><author>nonels</author><pubDate>Thu, 16 Oct 2008 15:51:00 GMT</pubDate><guid>http://m.tkk7.com/nonels/archive/2008/10/16/234784.html</guid><wfw:comment>http://m.tkk7.com/nonels/comments/234784.html</wfw:comment><comments>http://m.tkk7.com/nonels/archive/2008/10/16/234784.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/nonels/comments/commentRss/234784.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/nonels/services/trackbacks/234784.html</trackback:ping><description><![CDATA[聽聽聽聽聽聽鍦ㄥ弬鏁頒紶閫掕繃紼嬩腑錛岀粡甯鎬細紕板埌涓枃涔辯爜闂錛屾湁濂藉縐嶈В鍐蟲柟娉曪紝鍏朵腑涓縐嶅氨鏄敤鍒拌繃婊ゅ櫒銆?br /><br />CharacterEncodingFilter.java<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 src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">package</span><span style="COLOR: #000000">聽filter;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽java.io.IOException;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽javax.servlet.Filter;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽javax.servlet.FilterChain;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽javax.servlet.FilterConfig;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽javax.servlet.ServletException;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽javax.servlet.ServletRequest;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">import</span><span style="COLOR: #000000">聽javax.servlet.ServletResponse;<br /><img id="Codehighlighter1_258_306_Open_Image" onclick="this.style.display='none'; Codehighlighter1_258_306_Open_Text.style.display='none'; Codehighlighter1_258_306_Closed_Image.style.display='inline'; Codehighlighter1_258_306_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_258_306_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_258_306_Closed_Text.style.display='none'; Codehighlighter1_258_306_Open_Image.style.display='inline'; Codehighlighter1_258_306_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_258_306_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">/**聽*/</span><span id="Codehighlighter1_258_306_Open_Text"><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽*聽jsp涓枃涔辯爜鐨凢ilter榪囨護鍣?br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽*聽</span><span style="COLOR: #808080">@author</span><span style="COLOR: #008000">聽nonels<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽*<br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽</span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /><img id="Codehighlighter1_364_1154_Open_Image" onclick="this.style.display='none'; Codehighlighter1_364_1154_Open_Text.style.display='none'; Codehighlighter1_364_1154_Closed_Image.style.display='inline'; Codehighlighter1_364_1154_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_364_1154_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_364_1154_Closed_Text.style.display='none'; Codehighlighter1_364_1154_Open_Image.style.display='inline'; Codehighlighter1_364_1154_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽CharacterEncodingFilter聽</span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000">聽Filter聽</span><span id="Codehighlighter1_364_1154_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" /></span><span id="Codehighlighter1_364_1154_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">聽String聽encoding;聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽聽聽聽瀛楃緙栫爜</span><span style="COLOR: #008000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">boolean</span><span style="COLOR: #000000">聽ignore;聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽聽聽聽鏄惁蹇界暐澶у皬鍐?/span><span style="COLOR: #008000"><br /><img id="Codehighlighter1_509_800_Open_Image" onclick="this.style.display='none'; Codehighlighter1_509_800_Open_Text.style.display='none'; Codehighlighter1_509_800_Closed_Image.style.display='inline'; Codehighlighter1_509_800_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_509_800_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_509_800_Closed_Text.style.display='none'; Codehighlighter1_509_800_Open_Image.style.display='inline'; Codehighlighter1_509_800_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽init(FilterConfig聽filterConfig)聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽ServletException聽</span><span id="Codehighlighter1_509_800_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" /></span><span id="Codehighlighter1_509_800_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽encoding聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽filterConfig.getInitParameter(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">encoding</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽String聽value聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽filterConfig.getInitParameter(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">ignore</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img id="Codehighlighter1_646_668_Open_Image" onclick="this.style.display='none'; Codehighlighter1_646_668_Open_Text.style.display='none'; Codehighlighter1_646_668_Closed_Image.style.display='inline'; Codehighlighter1_646_668_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_646_668_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_646_668_Closed_Text.style.display='none'; Codehighlighter1_646_668_Open_Image.style.display='inline'; Codehighlighter1_646_668_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(value聽</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)聽</span><span id="Codehighlighter1_646_668_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" /></span><span id="Codehighlighter1_646_668_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽ignore聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br /><img id="Codehighlighter1_711_733_Open_Image" onclick="this.style.display='none'; Codehighlighter1_711_733_Open_Text.style.display='none'; Codehighlighter1_711_733_Closed_Image.style.display='inline'; Codehighlighter1_711_733_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_711_733_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_711_733_Closed_Text.style.display='none'; Codehighlighter1_711_733_Open_Image.style.display='inline'; Codehighlighter1_711_733_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(value.equalsIgnoreCase(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">true</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">))聽</span><span id="Codehighlighter1_711_733_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" /></span><span id="Codehighlighter1_711_733_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽ignore聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br /><img id="Codehighlighter1_775_797_Open_Image" onclick="this.style.display='none'; Codehighlighter1_775_797_Open_Text.style.display='none'; Codehighlighter1_775_797_Closed_Image.style.display='inline'; Codehighlighter1_775_797_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_775_797_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_775_797_Closed_Text.style.display='none'; Codehighlighter1_775_797_Open_Image.style.display='inline'; Codehighlighter1_775_797_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(value.equalsIgnoreCase(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">yes</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">))聽</span><span id="Codehighlighter1_775_797_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" /></span><span id="Codehighlighter1_775_797_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽ignore聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽doFilter(ServletRequest聽request,聽ServletResponse聽response,<br /><img id="Codehighlighter1_940_1101_Open_Image" onclick="this.style.display='none'; Codehighlighter1_940_1101_Open_Text.style.display='none'; Codehighlighter1_940_1101_Closed_Image.style.display='inline'; Codehighlighter1_940_1101_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_940_1101_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_940_1101_Closed_Text.style.display='none'; Codehighlighter1_940_1101_Open_Image.style.display='inline'; Codehighlighter1_940_1101_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽FilterChain聽filterChain)聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽IOException,聽ServletException聽</span><span id="Codehighlighter1_940_1101_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" /></span><span id="Codehighlighter1_940_1101_Open_Text"><span style="COLOR: #000000">{<br /><img id="Codehighlighter1_1005_1098_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1005_1098_Open_Text.style.display='none'; Codehighlighter1_1005_1098_Closed_Image.style.display='inline'; Codehighlighter1_1005_1098_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1005_1098_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1005_1098_Closed_Text.style.display='none'; Codehighlighter1_1005_1098_Open_Image.style.display='inline'; Codehighlighter1_1005_1098_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(ignore聽</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">聽encoding聽!</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)聽</span><span id="Codehighlighter1_1005_1098_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" /></span><span id="Codehighlighter1_1005_1098_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽request.setCharacterEncoding(encoding);<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽filterChain.doFilter(request,聽response);<br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_1127_1149_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1127_1149_Open_Text.style.display='none'; Codehighlighter1_1127_1149_Closed_Image.style.display='inline'; Codehighlighter1_1127_1149_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1127_1149_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1127_1149_Closed_Text.style.display='none'; Codehighlighter1_1127_1149_Open_Image.style.display='inline'; Codehighlighter1_1127_1149_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽destroy()聽</span><span id="Codehighlighter1_1127_1149_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" /></span><span id="Codehighlighter1_1127_1149_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽encoding聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">;<br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div><br />XML涓殑閰嶇疆鍔犱笂浠ヤ笅錛?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽<span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">filter</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">filter-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">CharacterEncodingFilter</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">filter-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">filter-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">filter.CharacterEncodingFilter</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">filter-class</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">ignore</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">true</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">encoding</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">GBK</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">param-value</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">init-param</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">filter</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">filter-mapping</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">filter-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">CharacterEncodingFilter</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">filter-name</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">url-pattern</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">/*</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">url-pattern</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">filter-mapping</span><span style="COLOR: #0000ff">></span></div><img src ="http://m.tkk7.com/nonels/aggbug/234784.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/nonels/" target="_blank">nonels</a> 2008-10-16 23:51 <a href="http://m.tkk7.com/nonels/archive/2008/10/16/234784.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JPBC ing錛?鐣欒█鏉夸箣涓錛氱敤JAVABEAN涓嶥AO灝佽鏁版嵁鐨勪笟鍔¢昏緫鍙婃搷浣?/title><link>http://m.tkk7.com/nonels/archive/2008/10/16/234782.html</link><dc:creator>nonels</dc:creator><author>nonels</author><pubDate>Thu, 16 Oct 2008 15:45:00 GMT</pubDate><guid>http://m.tkk7.com/nonels/archive/2008/10/16/234782.html</guid><wfw:comment>http://m.tkk7.com/nonels/comments/234782.html</wfw:comment><comments>http://m.tkk7.com/nonels/archive/2008/10/16/234782.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/nonels/comments/commentRss/234782.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/nonels/services/trackbacks/234782.html</trackback:ping><description><![CDATA[     鎽樿: 棣栧厛錛屽厛鐢―AO鎶婃暟鎹笟鍔¢昏緫閮ㄥ垎鍒嗙寮鏉ワ紝鍥犱負鎴戝彧鐢ㄥ埌MySQL錛屾墍浠ュ氨鐪佺暐浜嗗伐鍘傜被錛屽畾浜嗕竴涓笟鍔¢昏緫鐨勬帴鍙e強瀹炵幇瀹冪殑綾匯偮犅犅犅犅燤essageDAO.java聽聽聽聽聽聽 package聽DAO.iface;import聽java.util.List;/**聽*//**聽*聽榪涜鏁版嵁鎿嶄綔鐨勪笟鍔¢昏緫綾繪帴鍙g殑DAO聽*聽@author聽Administrator聽*聽*/public聽int...  <a href='http://m.tkk7.com/nonels/archive/2008/10/16/234782.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/nonels/aggbug/234782.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/nonels/" target="_blank">nonels</a> 2008-10-16 23:45 <a href="http://m.tkk7.com/nonels/archive/2008/10/16/234782.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤SAX瑙f瀽XML鏂囨。http://m.tkk7.com/nonels/archive/2008/09/28/231622.htmlnonelsnonelsSun, 28 Sep 2008 03:09:00 GMThttp://m.tkk7.com/nonels/archive/2008/09/28/231622.htmlhttp://m.tkk7.com/nonels/comments/231622.htmlhttp://m.tkk7.com/nonels/archive/2008/09/28/231622.html#Feedback0http://m.tkk7.com/nonels/comments/commentRss/231622.htmlhttp://m.tkk7.com/nonels/services/trackbacks/231622.html闃呰鍏ㄦ枃

nonels 2008-09-28 11:09 鍙戣〃璇勮
]]>
浣跨敤DOM瑙f瀽XML鏂囨。http://m.tkk7.com/nonels/archive/2008/09/28/231617.htmlnonelsnonelsSun, 28 Sep 2008 03:03:00 GMThttp://m.tkk7.com/nonels/archive/2008/09/28/231617.htmlhttp://m.tkk7.com/nonels/comments/231617.htmlhttp://m.tkk7.com/nonels/archive/2008/09/28/231617.html#Feedback0http://m.tkk7.com/nonels/comments/commentRss/231617.htmlhttp://m.tkk7.com/nonels/services/trackbacks/231617.html
瀵逛簬涓嬮潰鐨勪竴涓畝鍗昘ML鏂囨。錛?

xml浠g爜錛?
  闃呰鍏ㄦ枃

nonels 2008-09-28 11:03 鍙戣〃璇勮
]]>
Tomcat6.0 閰嶇疆http://m.tkk7.com/nonels/archive/2008/09/04/226984.htmlnonelsnonelsThu, 04 Sep 2008 07:43:00 GMThttp://m.tkk7.com/nonels/archive/2008/09/04/226984.htmlhttp://m.tkk7.com/nonels/comments/226984.htmlhttp://m.tkk7.com/nonels/archive/2008/09/04/226984.html#Feedback0http://m.tkk7.com/nonels/comments/commentRss/226984.htmlhttp://m.tkk7.com/nonels/services/trackbacks/226984.html鍦ㄦ垚鍔熷畨瑁匤DK鐨勫墠鎻愪笅錛屽畨瑁卼omcat6.0錛堝亣璁懼畨瑁呰礬寰勪負C錛氾紝涓鑸夋嫨FULL瀹夎錛?.0浠ヤ笂鐗堟湰涓嶇敤閰嶇疆鐜鍙橀噺錛夌郴緇熷彉閲忎腑娣誨姞浠ヤ笅鐜鍙橀噺(鍋囧畾浣犵殑j2sdk瀹夎鍦?/span>c:"jdk1.6錛夛細JAVA_HOME=c:"jdk1.6銆?/span>鎺ョ潃鍙互鍚姩tomcat錛屽湪IE涓闂?/span>http://localhost:8080錛屽鏋滅湅鍒?/span>tomcat鐨勬榪庨〉闈㈢殑璇濊鏄庡畨瑁呮垚鍔熶簡銆?br /> 聽聽聽 鐒跺悗瀵箃omcat榪涜閰嶇疆錛?br /> 聽聽聽 絎竴姝?/span>錛氬緩绔嬭嚜宸辯殑jsp聽app鐩綍錛?br />聽聽聽聽聽聽聽 1.鍦?/span>webapps鐩綍涓嬫柊寤轟竴涓洰褰曪紝璧峰悕鍙?/span>myapp錛?/span>聽
聽聽聽聽聽 聽 2.myapp涓嬫柊寤轟竴涓洰褰?/span>WEB-INF錛屾敞鎰忥紝鐩綍鍚嶇О鏄尯鍒嗗ぇ灝忓啓鐨勶紱
聽聽聽聽聽聽聽 3.WEB-INF涓嬫柊寤轟竴涓枃浠?/span>web.xml錛屽唴瀹瑰涓嬶細

聽聽聽
聽1<?xml聽version="1.0"聽encoding="ISO-8859-1"?>
聽2
聽3<!DOCTYPE聽web-app
聽4PUBLIC聽"-//Sun聽Microsystems,聽Inc.//DTD聽Web聽Application聽2.3//EN"
聽5"http://java.sun.com/dtd/web-app_2_3.dtd">
聽6
聽7<web-app>
聽8<display-name>My聽Web聽Application</display-name>
聽9<description>
10A聽application聽for聽test.
11</description>
12</web-app>
聽聽
聽 聽 4.鍦?/span>myapp涓嬫柊寤轟竴涓祴璇曠殑jsp欏甸潰錛屾枃浠跺悕涓?/span>index.jsp錛屾枃浠跺唴瀹瑰涓?br /> 聽
1<html>
2<body>
3<center>
4Now聽time聽is:聽<%=new聽java.util.Date()%>
5</center>
6</body>
7</html>
聽聽聽 5.閲嶅惎Tomcat聽
聽聽聽聽 聽聽 6.鎵撳紑嫻忚鍣紝杈撳叆
http://localhost:8080/myapp/index.jsp鐪嬪埌褰撳墠鏃墮棿鐨勮瘽璇存槑灝辨垚鍔熶簡

聽聽聽
絎簩姝?/span>錛氬緩绔嬭嚜宸辯殑Servlet錛?br /> 聽聽聽 鍐欏叆浣犵殑絎竴涓猄ervlet:
聽聽聽 鍦ㄤ綘鏂板緩鐨凙pplication myapp/WEB-INF/classes/test鐩綍涓嬫柊寤篐elloWorld.java
聽聽聽

聽1package聽test;
聽2
聽3import聽java.io.*;
聽4聽聽import聽javax.servlet.*;
聽5聽聽import聽javax.servlet.http.*;
聽6聽聽publicclass聽HelloWorld聽extends聽HttpServlet
聽7聽聽{
聽8聽聽聽聽publicvoid聽doGet(HttpServletRequest聽request,HttpServletResponse聽response)throws ServletException,IOException
聽9聽聽聽{
10聽聽聽聽response.setContentType("text/html");
11聽聽聽聽PrintWriter聽out聽=聽response.getWriter();
12聽聽聽聽out.println("<html><head><title>");
13聽聽聽聽out.println("This聽is聽my聽first聽Servlet");
14聽聽聽聽out.println("</title></head><body>");
15聽聽聽聽out.println("<h1>Hello,World!</h1>");
16聽聽聽聽out.println("</body></html>");
17聽聽聽
18聽聽聽}
19聽聽聽}
聽聽聽 鎶奣omcat涓璴ib閲岄潰鐨?/font>servlet-api.jar鏂囦歡鎷瘋礉鍒癈:"JDK"jre"lib"ext涓?/font>錛岀紪璇?font size="2">HelloWorld.java
聽聽聽
Servlet蹇呴』浣跨敤C:"Tomcat"webapps"myapp"WEB-INF榪欎釜鐩綍涓嬮潰鐨剋eb.xml鏂囦歡榪涜娉ㄥ唽錛岀敤EditPlus鎵撳紑榪欎釜web.xml鏂囦歡錛屽湪<web-app></web-app>娣誨姞涓嬮潰榪欐紼嬪簭:
聽聽聽
聽1package聽test;
聽2publicclass聽TestBean
聽3{
聽4聽聽聽聽private聽String聽name聽=null;
聽5聽聽聽聽public聽TestBean(String聽nameInit){
聽6聽聽聽聽聽聽聽聽this.name聽=聽nameInit;
聽7聽聽聽聽}
聽8聽聽聽聽publicvoid聽setName(String聽newName){
聽9聽聽聽聽聽聽聽聽this.name=newName;
10聽聽聽聽}
11聽聽聽聽public聽String聽getName(){
12聽聽聽聽聽聽聽聽returnthis.name;
13聽聽聽聽}
14}
聽聽聽聽聽聽 鐒跺悗鐓ф牱鐢?font color="#ff9900">javac TestBean.java鏉ョ紪璇戣繖涓枃浠躲?br />
聽聽聽聽聽
2.鐒跺悗鍦ㄤ綘鏂板緩鐨勫簲鐢ㄧ▼搴忕洰褰?font color="#ff0000">myapp涓嬫柊寤轟竴涓柊鐨刯sp鏂囦歡錛歵estBean.jsp
聽聽聽聽聽聽

聽1<%@聽page聽import="test.TestBean"%>
聽2<html>
聽3<head>
聽4<title>Test聽Bean</title>
聽5</head>
聽6<body>
聽7<center>
聽8<%
聽9聽聽聽TestBean聽testBean聽=new聽TestBean("Http://czl.cn");
10聽聽%>
11Java聽Bean聽Test:
12聽聽聽聽The聽author's聽blog聽address聽is<%=testBean.getName()%>
13</center>
14</body>
15</html>
聽聽聽聽聽 紜畾鍚勪釜鏂囦歡鐨勪綅緗紝濡備笅
聽聽聽聽聽

myapp"index.jsp
myapp"testBean.jsp
myapp"WEB-INF"web.xml
myapp"WEB-INF"classes"test"HelloWorld.class
myapp"WEB-INF"classes"test"TestBean.class
聽聽聽聽聽聽

聽聽聽聽 3.閲嶅惎Tomcat濡傛灉闇瑕佺殑璇濓紝鍦ㄦ祻瑙堝櫒杈撳叆:http://localhost:8080/myapp/testBean.jsp騫歌繍鐨勮瘽灝變細鐪嬪埌:

聽聽聽聽 Java Bean Test: The author's blog address isHttp://czl.cn

聽聽聽聽 榪欐牱灝卞畬鎴愪簡鏁翠釜Tomcat涓嬬殑jsp銆乻ervlet鍜宩avabean鐨勯厤緗?br />
聽聽聽

聽聽 絎洓姝ワ細閰嶇疆铏氭嫙鐩綍

聽聽聽聽聽 鎵撳紑 Tomcat6.0"conf"server.xml 鏂囦歡錛屽湪 <Host> 鍜?</Host> 涔嬮棿鍔犲叆聽聽聽聽

<Context聽path="/myapp"聽docBase="D:"myapp"聽debug="0"聽reloadable="true"聽crossContext="true"/>


nonels 2008-09-04 15:43 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 久久夜色精品国产噜噜亚洲a| 亚洲va国产va天堂va久久| 亚洲无人区视频大全| 人与禽交免费网站视频| 亚洲一区二区女搞男| 亚洲阿v天堂在线2017免费| 亚洲美女在线国产| 高潮内射免费看片| 亚洲成a人片在线观看日本麻豆 | 日韩不卡免费视频| 亚洲国产精品乱码在线观看97| 91免费国产自产地址入| 亚洲成a人片7777| 欧美a级在线现免费观看| 亚洲永久网址在线观看| 日韩免费电影在线观看| 男女超爽视频免费播放| 中文字幕第13亚洲另类| 中文无码成人免费视频在线观看| 亚洲国产精品自在在线观看| 国产成人精品亚洲日本在线| 欧亚精品一区三区免费| 国产精品亚洲精品日韩动图| 亚洲午夜爱爱香蕉片| 美女视频黄的免费视频网页| 亚洲一本之道高清乱码| 情侣视频精品免费的国产| 一级毛片正片免费视频手机看 | 嫩草影院免费观看| mm1313亚洲国产精品无码试看| 亚洲国产精品一区二区三区久久| 中文字幕免费在线看| 亚洲精品在线视频观看| 天天天欲色欲色WWW免费| 国产成人高清精品免费观看| 亚洲天堂一区二区| 免费看美女被靠到爽的视频| 成人av片无码免费天天看| 亚洲国产日韩在线成人蜜芽 | 男人的天堂亚洲一区二区三区| 粉色视频在线观看www免费|