锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲人成欧美中文字幕,亚洲综合一区无码精品,亚洲国产亚洲综合在线尤物http://www.tkk7.com/lanluquan/category/14512.htmllanluquanzh-cnThu, 19 Jul 2007 02:58:24 GMTThu, 19 Jul 2007 02:58:24 GMT60Javascript cookie鎿嶄綔鏀葷暐http://www.tkk7.com/lanluquan/articles/131040.html鏃卞ご鎲ㄨ剳鏃卞ご鎲ㄨ剳Wed, 18 Jul 2007 05:26:00 GMThttp://www.tkk7.com/lanluquan/articles/131040.htmlhttp://www.tkk7.com/lanluquan/comments/131040.htmlhttp://www.tkk7.com/lanluquan/articles/131040.html#Feedback0http://www.tkk7.com/lanluquan/comments/commentRss/131040.htmlhttp://www.tkk7.com/lanluquan/services/trackbacks/131040.html涓轟簡鍦–ookie涓В鍐沖瓧絎︿貢鐮侀棶棰橈紝寤鴻鍦ㄤ繚瀛楥ookie鍓嶅Value鍊艱繘琛岀紪鐮侊紝鍙互鐢辨湇鍔″櫒鍚庡彴鍐欏叆Cookie錛屼篃鍙互鍦˙rowser绔嬌鐢↗avascript鍐欏叆銆?br>浠ヤ笅鏄湪Browser绔氳繃Javascript鎿嶄綔Cookie錛氾紙鍧囦負緗戠粶杞澆錛?/p>

鏋勯犻氱敤鐨刢ookie澶勭悊鍑芥暟錛?br>1錛庢坊鍔犱竴涓猚ookie錛歛ddCookie(name,value,expireHours)
璇ュ嚱鏁版帴鏀?涓弬鏁幫細cookie鍚嶇О錛宑ookie鍊鹼紝浠ュ強鍦ㄥ灝戝皬鏃跺悗榪囨湡銆傝繖閲岀害瀹歟xpireHours涓?鏃朵笉璁懼畾榪囨湡鏃墮棿錛屽嵆褰撴祻瑙堝櫒鍏抽棴鏃禼ookie鑷姩娑堝け銆傝鍑芥暟瀹炵幇濡備笅錛?br>

<script language="JavaScript" type="text/javascript">
<!--
function addCookie(name,value,expireHours){
var cookieString=name+"="+escape(value);
//鍒ゆ柇鏄惁璁劇疆榪囨湡鏃墮棿
if(expireHours>0){
var date=new Date();
date.setTime(date.getTime
+expireHours*3600*1000); // 杞崲涓烘縐?/span>
cookieString=cookieString+"; expire="+date.toGMTString();
}

document.cookie
=cookieString;
}

//-->
</script>


2錛庤幏鍙栨寚瀹氬悕縐扮殑cookie鍊鹼細getCookie(name)
璇ュ嚱鏁拌繑鍥炲悕縐頒負name鐨刢ookie鍊鹼紝濡傛灉涓嶅瓨鍦ㄥ垯榪斿洖絀猴紝鍏跺疄鐜板涓嬶細

<script language="JavaScript" type="text/javascript">
<!--
function getCookie(name){
var strCookie=document.cookie;
var arrCookie=strCookie.split(""); // 灝嗗cookie鍒囧壊涓哄涓悕/鍊煎
for(var i=0;i<arrCookie.length;i++)// 閬嶅巻cookie鏁扮粍錛屽鐞嗘瘡涓猚ookie瀵?/span>
var arr=arrCookie[i].split("="); // 鎵懼埌鍚嶇О涓簎serId鐨刢ookie錛屽茍榪斿洖瀹冪殑鍊?/span>
if(arr[0]==name)
return arr[1];
}

return "";
}

//-->
</script>


3錛庡垹闄ゆ寚瀹氬悕縐扮殑cookie錛歞eleteCookie(name)
璇ュ嚱鏁板彲浠ュ垹闄ゆ寚瀹氬悕縐扮殑cookie錛屽叾瀹炵幇濡備笅錛?br>

<script language="JavaScript" type="text/javascript">
<!--
function deleteCookie(name){
var date=new Date();
date.setTime(date.getTime()
-10000); // 鍒犻櫎涓涓猚ookie錛屽氨鏄皢鍏惰繃鏈熸椂闂磋瀹氫負涓涓繃鍘葷殑鏃墮棿
document.cookie=name+"=v; expire="+date.toGMTString();
}

//-->
</script> 


鏃卞ご鎲ㄨ剳 2007-07-18 13:26 鍙戣〃璇勮
]]>
Spring2.0 AOP 蹇冨緱錛堜簩錛?/title><link>http://www.tkk7.com/lanluquan/articles/76366.html</link><dc:creator>鏃卞ご鎲ㄨ剳</dc:creator><author>鏃卞ご鎲ㄨ剳</author><pubDate>Fri, 20 Oct 2006 05:10:00 GMT</pubDate><guid>http://www.tkk7.com/lanluquan/articles/76366.html</guid><wfw:comment>http://www.tkk7.com/lanluquan/comments/76366.html</wfw:comment><comments>http://www.tkk7.com/lanluquan/articles/76366.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/lanluquan/comments/commentRss/76366.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/lanluquan/services/trackbacks/76366.html</trackback:ping><description><![CDATA[聽聽聽聽聽聽緇笂鏂囷紝鍦ㄥ疄鐜頒簡瀵筍ervice灞傜殑AOP鍚庯紝鎴戝喅瀹氱敤鍚屾牱鐨勬柟娉曞幓鏀歸犳垜鐨凷pring controller灞傚拰Interceptor銆傚彂鐜癱ontroller灞傛牴鏈病鏈夋垚鍔燂紝鑰孖nterceptor鐨凙OP鍙兘鍑虹幇鍦ㄥ崟鍏冩祴璇曚腑錛屾斁鍦ㄦ湇鍔″櫒涓婅窇鍙堟槸涓嶆垚鍔熴備篃璁窼pring鐨凙OP鍙兘瀵筆OJO榪涜AOP錛岃屽闈濸OJO鐨勶紝濡俿ervlet絳夋槸涓嶈鐨勩傝繖涓棶棰樿鏀懼埌浠ュ悗鍐嶅涔犲拰瑙e喅銆?img src ="http://www.tkk7.com/lanluquan/aggbug/76366.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/lanluquan/" target="_blank">鏃卞ご鎲ㄨ剳</a> 2006-10-20 13:10 <a href="http://www.tkk7.com/lanluquan/articles/76366.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring2.0 AOP浣跨敤蹇冨緱錛堜竴錛?/title><link>http://www.tkk7.com/lanluquan/articles/76341.html</link><dc:creator>鏃卞ご鎲ㄨ剳</dc:creator><author>鏃卞ご鎲ㄨ剳</author><pubDate>Fri, 20 Oct 2006 03:02:00 GMT</pubDate><guid>http://www.tkk7.com/lanluquan/articles/76341.html</guid><wfw:comment>http://www.tkk7.com/lanluquan/comments/76341.html</wfw:comment><comments>http://www.tkk7.com/lanluquan/articles/76341.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/lanluquan/comments/commentRss/76341.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/lanluquan/services/trackbacks/76341.html</trackback:ping><description><![CDATA[聽聽聽聽聽聽姝e湪鍋氱殑欏圭洰涓湁涓涓被浼肩Н鍒嗙殑闇姹傦紝姣斿鐢ㄦ埛鍦ㄨ璁哄尯鍙戝笘鍚庯紝闇瑕佺粰涓瀹氱殑縐垎榪欐牱鐨勯渶姹傘傚洜涓洪渶姹傛槸鍙樺寲鐨勶紝鍚屾椂涓轟簡浣垮凡緇忓啓濂界殑鍙戝笘浠g爜涓嶈鍏ヤ鏡錛屾墍浠ヨ冭檻浣跨敤Spring2.0 AOP鏉ュ疄鐜拌繖涓姛鑳姐?br />聽聽聽聽聽聽姣曠珶鏄涓嬈′嬌鐢⊿pring2.0鐨凙OP錛屾寜鐓eference涓殑浠嬬粛錛屽噯澶囦嬌鐢ˋnnotation鏉ュ畬鎴愬AOP鐨勯厤緗傛潵鐪嬩竴涓嬫垜鍋氱殑姝ラ錛?br />聽聽聽聽聽聽涓銆侀渶瑕佷嬌鐢⊿pring2.0鐨刯ar鍖咃紝鐜板湪宸茬粡鍙戝竷姝e紡鐗堢殑2.0浜嗭紝鍙互浠?a >http://www.springframework.org/</a>聽 涓婁笅杞藉埌鏈鏂扮殑2.0鐗堟湰銆傚姞鍏ュ埌欏圭洰鐨刢lasspath涓幓銆?br />聽聽聽聽聽 浜屻侀渶瑕佸湪閰嶇疆鏂囦歡涓惎鐢ㄦ柊鐨剆pring2.0鐨剆chema鎴栬呮槸dtd銆偮犅犅?br />聽聽聽聽聽聽1銆佸湪Spring鐨剎ml閰嶇疆鏂囦歡涓姞鍏ユ柊鐨剆chema錛?<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://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">beans聽</span><span style="COLOR: #ff0000">xmlns</span><span style="COLOR: #0000ff">="http://www.springframework.org/schema/beans"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽xmlns:xsi</span><span style="COLOR: #0000ff">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽xmlns:aop</span><span style="COLOR: #0000ff">="http://www.springframework.org/schema/aop"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽xmlns:tx</span><span style="COLOR: #0000ff">="http://www.springframework.org/schema/tx"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽xsi:schemaLocation</span><span style="COLOR: #0000ff">="http://www.springframework.org/schema/beans聽http://www.springframework.org/schema/beans/spring-beans-2.0.xsd<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽http://www.springframework.org/schema/aop聽http://www.springframework.org/schema/aop/spring-aop-2.0.xsd<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽http://www.springframework.org/schema/tx聽http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"</span><span style="COLOR: #ff0000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽default-autowire</span><span style="COLOR: #0000ff">="byName"</span><span style="COLOR: #ff0000">聽default-lazy-init</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #0000ff">></span></div>聽聽聽聽聽聽 2銆佲滃鏋滀嬌鐢↗ava 5鐨勮瘽錛屾帹鑽愪嬌鐢⊿pring鎻愪緵鐨凘AspectJ鍒囬潰鏀寔錛岄氳繃榪欑鏂瑰紡澹版槑Spring AOP涓嬌鐢ㄧ殑鍒囬潰銆?"@AspectJ"浣跨敤浜咼ava 5鐨勬敞瑙o紝鍙互灝嗗垏闈㈠0鏄庝負鏅氱殑Java綾匯傗濃斺擲pring reference<br />聽聽聽聽聽聽3銆佷負浜嗕嬌鐢ˋOP鐨凙nnotation錛屽湪閰嶇疆鏂囦歡涓姞鍏?lt;aop:aspectj-autoproxy />銆?br />聽聽聽聽聽聽4銆佺紪鍐欏垏闈㈢被錛?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://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">@Aspect<br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.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">聽ArticleRemoteAccountsService聽</span><span id="Codehighlighter1_100_1203_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_381_530_Open_Image" onclick="this.style.display='none'; Codehighlighter1_381_530_Open_Text.style.display='none'; Codehighlighter1_381_530_Closed_Image.style.display='inline'; Codehighlighter1_381_530_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_381_530_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_381_530_Closed_Text.style.display='none'; Codehighlighter1_381_530_Open_Image.style.display='inline'; Codehighlighter1_381_530_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span id="Codehighlighter1_381_530_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_381_530_Open_Text"><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽鍦ㄥ彂甯栨垚鍔熶箣鍚庯紝緇欑敤鎴烽摱甯佽處鎴峰啿鍊?br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽</span><span style="COLOR: #808080">@param</span><span style="COLOR: #008000">聽arg<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽</span><span style="COLOR: #808080">@throws</span><span style="COLOR: #008000">聽AccountsException<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽</span><span style="COLOR: #808080">@throws</span><span style="COLOR: #008000">聽InstantiationException<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽</span><span style="COLOR: #808080">@throws</span><span style="COLOR: #008000">聽IllegalAccessException<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽@After(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">execution(*聽com.company.ArticleManager.saveArticle(..))</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">聽&&聽args(arg)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">)<br /><img src="http://www.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">聽exSilByPost(Article聽arg)聽</span><span style="COLOR: #0000ff">throws</span><span style="COLOR: #000000">聽AccountsException,<br /><img id="Codehighlighter1_746_1200_Open_Image" onclick="this.style.display='none'; Codehighlighter1_746_1200_Open_Text.style.display='none'; Codehighlighter1_746_1200_Closed_Image.style.display='inline'; Codehighlighter1_746_1200_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_746_1200_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_746_1200_Closed_Text.style.display='none'; Codehighlighter1_746_1200_Open_Image.style.display='inline'; Codehighlighter1_746_1200_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽InstantiationException,聽IllegalAccessException聽</span><span id="Codehighlighter1_746_1200_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.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_746_1200_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(arg.getLastUpdateTime()聽</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://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">聽arg.getArticleByParentId()聽</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_870_968_Open_Image" onclick="this.style.display='none'; Codehighlighter1_870_968_Open_Text.style.display='none'; Codehighlighter1_870_968_Closed_Image.style.display='inline'; Codehighlighter1_870_968_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_870_968_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_870_968_Closed_Text.style.display='none'; Codehighlighter1_870_968_Open_Image.style.display='inline'; Codehighlighter1_870_968_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">聽arg.getArticleByRootId()聽</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_870_968_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.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_870_968_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO 涓婚甯?/span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.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">聽(arg.getLastUpdateTime()聽</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://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000">聽(arg.getArticleByParentId()聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">聽arg<br /><img id="Codehighlighter1_1099_1196_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1099_1196_Open_Text.style.display='none'; Codehighlighter1_1099_1196_Closed_Image.style.display='inline'; Codehighlighter1_1099_1196_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1099_1196_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1099_1196_Closed_Text.style.display='none'; Codehighlighter1_1099_1196_Open_Image.style.display='inline'; Codehighlighter1_1099_1196_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽.getArticleByRootId()聽</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_1099_1196_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.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_1099_1196_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO聽 鍥炲笘</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div>榪欓噷闇瑕佹敞鎰忕殑鏄嬌鐢ˋnnotation鐨凱oincut璇硶錛?br />execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) <span id="dbx779x" class="code-keyword">throws</span>-pattern?)<br />榪欓噷灝變笉绱瘔浜嗐?br />鍚屾椂瑕佹敞鎰忕殑濡備綍寰楀埌鍙傛暟鐨勯棶棰橈紝鍐欐硶鍙傝冨涓娿?img src ="http://www.tkk7.com/lanluquan/aggbug/76341.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/lanluquan/" target="_blank">鏃卞ご鎲ㄨ剳</a> 2006-10-20 11:02 <a href="http://www.tkk7.com/lanluquan/articles/76341.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Tomcat涓紝UTF-8 URL鎻愪氦鍙傛暟涓枃瑙e喅緇堟瀬鏂規http://www.tkk7.com/lanluquan/articles/74541.html鏃卞ご鎲ㄨ剳鏃卞ご鎲ㄨ剳Wed, 11 Oct 2006 06:21:00 GMThttp://www.tkk7.com/lanluquan/articles/74541.htmlhttp://www.tkk7.com/lanluquan/comments/74541.htmlhttp://www.tkk7.com/lanluquan/articles/74541.html#Feedback0http://www.tkk7.com/lanluquan/comments/commentRss/74541.htmlhttp://www.tkk7.com/lanluquan/services/trackbacks/74541.html聽聽聽聽聽聽聽灝變互涓婃儏鍐靛垎鏋愶紝搴旇鏄湪浼犺緭榪囩▼涓涪澶變簡鏌愪釜瀛楃錛屽洜涓烘垜浠煡閬撳湪浼犺緭涓槸浠?榪涘埗褰㈠紡浼犺緭銆?br />聽聽聽聽聽聽 浜庢槸鍙互鍦↗SP欏甸潰涓婏紝鍦ㄦ彁浜RL涔嬪墠錛屼嬌鐢╦avascript鐨別ncodeURIComponent()鏉ュ皢鍙傛暟緙栫爜鎴愪負UNICODE錛屼箣鍚庡湪鏈嶅姟鍣ㄧ浣跨敤URLDecoder.decode榪涜瑙g爜銆?br />聽聽聽聽聽聽聽 鏋滅劧錛岃В鍐抽棶棰樸備笉榪囪繖縐嶆柟寮忓疄鍦ㄥお涓嶄紭闆呫?img src ="http://www.tkk7.com/lanluquan/aggbug/74541.html" width = "1" height = "1" />

鏃卞ご鎲ㄨ剳 2006-10-11 14:21 鍙戣〃璇勮
]]>
Struts涓笉闄愪釜鏁頒笂浼犳枃浠剁殑瀹炵幇鏂規http://www.tkk7.com/lanluquan/articles/67051.html鏃卞ご鎲ㄨ剳鏃卞ご鎲ㄨ剳Fri, 01 Sep 2006 03:38:00 GMThttp://www.tkk7.com/lanluquan/articles/67051.htmlhttp://www.tkk7.com/lanluquan/comments/67051.htmlhttp://www.tkk7.com/lanluquan/articles/67051.html#Feedback0http://www.tkk7.com/lanluquan/comments/commentRss/67051.htmlhttp://www.tkk7.com/lanluquan/services/trackbacks/67051.html聽聽聽聽聽聽棣栧厛錛屽湪Jsp欏甸潰涓紝闇瑕佹湁鍍?63閭f牱鍔ㄦ佹坊鍔犻檮浠剁殑鍔熻兘錛岃繖涓彲浠ヤ嬌鐢↗S鏉ュ疄鐜般備唬鐮佸涓嬶細
聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽<tr聽bgcolor="#FFFFFF">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<td聽nowrap聽id="fileTD"聽align="center"聽colSpan="2">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<input聽name="uploadFile(0)"聽type="file"聽size="40">
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
<input聽type="button"聽onclick="addFile()"聽value="娣誨姞"/>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</td>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
</tr>

聽聽聽聽var聽fileIndex聽=0;
聽聽聽聽
function聽addFile()聽
聽聽聽聽
{
聽聽聽聽聽聽聽聽fileIndex
++;
聽聽聽聽聽聽聽聽
var聽spanId聽="fileTD";
聽聽聽聽聽聽聽聽
var聽fileId聽="uploadFile("+fileIndex+")";
聽聽聽聽聽聽聽聽addInputFile(spanId,聽fileId);
聽聽聽聽}

聽聽聽聽
function聽addInputFile(spanId,聽fileId)聽
聽聽聽聽
{
聽聽聽聽聽聽聽聽
var聽span聽=聽document.getElementById(spanId);
聽聽聽聽聽聽聽聽
if聽(span聽!=null)聽
聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽
var聽divObj聽=聽document.createElement("div");
聽聽聽聽聽聽聽聽聽聽聽聽
var聽fileObj,聽delObj;
聽聽聽聽聽聽聽聽聽聽聽聽divObj.id聽
=聽fileId;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽fileObj聽
=聽document.createElement("<input聽type=file>");
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽delObj聽
=聽document.createElement("<input聽type=button聽onclick=delInputFile('"+聽spanId聽+"','"+聽fileId聽+"')>");
聽聽聽聽聽聽聽聽聽聽聽聽fileObj.name聽
=聽fileId;
聽聽聽聽聽聽聽聽聽聽聽聽fileObj.size聽
="40";
聽聽聽聽聽聽聽聽聽聽聽聽fileObj.className聽="input";
聽聽聽聽聽聽聽聽聽聽聽聽delObj.value聽
='鍒犻櫎';
聽聽聽聽聽聽聽聽聽聽聽聽divObj.appendChild(fileObj);
聽聽聽聽聽聽聽聽聽聽聽聽divObj.appendChild(document.createTextNode(
""));
聽聽聽聽聽聽聽聽聽聽聽聽divObj.appendChild(delObj);
聽聽聽聽聽聽聽聽聽聽聽聽span.appendChild(divObj);
聽聽聽聽聽聽聽聽}

聽聽聽聽}

聽聽聽聽
function聽delInputFile(spanId,聽fileId)聽
聽聽聽聽
{
聽聽聽聽聽聽聽聽
var聽span聽=聽document.getElementById(spanId);
聽聽聽聽聽聽聽聽
var聽divObj聽=聽document.getElementById(fileId);
聽聽聽聽聽聽聽聽
if聽(span聽!=null&&聽divObj聽!=null)聽
聽聽聽聽聽聽聽聽
{
聽聽聽聽聽聽聽聽聽聽聽聽span.removeChild(divObj);
聽聽聽聽聽聽聽聽}

聽聽聽聽}

涓婇潰浠g爜涓殑Html鍜孞S浠g爜灝卞彲浠ュ疄鐜板姩鎬佹坊鍔犺鐨勬晥鏋溿傦紙涓婅堪JS浠g爜鍙傝冧簡涓浣嶇綉鍙嬬殑瀹炵幇錛岃繖閲屽浠栬〃紺烘劅璋€傦級
Html浠g爜涓殑聽<input聽name="uploadFile(0)"聽type="file"聽size="40">瀹規槗璁╀漢榪鋒儜錛屾垜涔熸槸絎竴嬈″啓name="uploadFile(0)"榪欐牱鐨凥tml浠g爜銆?/span>
榪欓噷鐨?font color="#0000ff">uploadFile(0)琛ㄧず鏁扮粍涓璱ndex=0鐨勫厓绱狅紝閭d箞鍦⊿truts鐨凢ormBean涓張搴旇濡備綍璁〣eanUtils鍦ㄥ仛鍙嶅皠鐨勬椂鍊欏彲浠ユ紜殑璧嬪煎憿錛?br />鏉ョ湅涓涓婩ormBean涓殑浠g爜錛?br />
import聽java.util.ArrayList;

import聽org.apache.struts.action.ActionForm;
import聽org.apache.struts.upload.FormFile;

publicclass聽BulletinInfoForm聽extends聽ActionForm聽{
聽聽聽聽
privatestaticfinallong聽serialVersionUID聽=-7869342360944575352L;

聽聽聽聽
private聽Long聽id;
聽聽聽聽
聽聽聽聽
private聽String聽newsTitle;
聽聽聽聽
聽聽聽聽
private聽String聽newsType;
聽聽聽聽
聽聽聽聽
private聽String聽newsContent;

聽聽聽聽
private聽ArrayList<FormFile>聽uploadFiles聽=new聽ArrayList<FormFile>();

聽聽聽聽
publicvoid聽setUploadFile(String聽index,聽FormFile聽formFile)聽{
聽聽聽聽聽聽聽聽
this.uploadFiles.add(formFile);
聽聽聽聽}


聽聽聽聽
public聽ArrayList<FormFile>聽getUploadFiles()聽{
聽聽聽聽聽聽聽聽
returnthis.uploadFiles;
聽聽聽聽}


聽聽聽聽
public聽Long聽getId()聽{
聽聽聽聽聽聽聽聽
return聽id;
聽聽聽聽}


聽聽聽聽
publicvoid聽setId(Long聽id)聽{
聽聽聽聽聽聽聽聽
this.id聽=聽id;
聽聽聽聽}


聽聽聽聽
public聽String聽getNewsContent()聽{
聽聽聽聽聽聽聽聽
return聽newsContent;
聽聽聽聽}


聽聽聽聽
publicvoid聽setNewsContent(String聽newsContent)聽{
聽聽聽聽聽聽聽聽
this.newsContent聽=聽newsContent;
聽聽聽聽}


聽聽聽聽
public聽String聽getNewsTitle()聽{
聽聽聽聽聽聽聽聽
return聽newsTitle;
聽聽聽聽}


聽聽聽聽
publicvoid聽setNewsTitle(String聽newsTitle)聽{
聽聽聽聽聽聽聽聽
this.newsTitle聽=聽newsTitle;
聽聽聽聽}


聽聽聽聽
public聽String聽getNewsType()聽{
聽聽聽聽聽聽聽聽
return聽newsType;
聽聽聽聽}


聽聽聽聽
publicvoid聽setNewsType(String聽newsType)聽{
聽聽聽聽聽聽聽聽
this.newsType聽=聽newsType;
聽聽聽聽}


聽聽聽聽
}

鐣欐剰浠ヤ笂浠g爜涓殑
publicvoid聽setUploadFile(String聽index,聽FormFile聽formFile)聽{
聽聽聽聽聽聽聽聽
this.uploadFiles.add(formFile);
聽聽聽聽}


榪欓噷鎻愪緵鐨剆etUploadFIle(String index, FormFile formFile)鍏跺疄灝辨槸緇橞eanUtils涓涓紜殑鍊熷彛錛岃瀹冨彲浠ュuploadFile(0)榪欐牱鐨勫厓绱犺繘琛屾紜殑鍙嶅皠銆傚綋鐒訛紝榪欓噷涓嶇敤鑰冭檻index錛岀洿鎺ュ皢formFile娣誨姞榪沴ist涓?br />
聽聽聽聽聽聽鍥犳錛屽湪Struts涓笉闄愪釜鏁頒笂浼犳枃浠剁殑瀹炵幇涓紝涓昏鏄〉闈腑鍔ㄦ佹坊鍔犱笂浼犳枃浠惰鍜屽湪FormBean涓紜祴鍊鹼紝Action涓鍋氱殑鐩鎬俊灝卞緢綆鍗曚簡錛屽彧瑕佹妸FormBean涓殑List鍙栧嚭鏉ラ愪釜榪涜鎿嶄綔銆?br />聽聽聽聽聽聽

]]>
Spring2.0 鏂扮壒鎬т箣Bean鏂板鑼冨洿session, request, global sessionhttp://www.tkk7.com/lanluquan/articles/66222.html鏃卞ご鎲ㄨ剳鏃卞ご鎲ㄨ剳Mon, 28 Aug 2006 09:07:00 GMThttp://www.tkk7.com/lanluquan/articles/66222.htmlhttp://www.tkk7.com/lanluquan/comments/66222.htmlhttp://www.tkk7.com/lanluquan/articles/66222.html#Feedback0http://www.tkk7.com/lanluquan/comments/commentRss/66222.htmlhttp://www.tkk7.com/lanluquan/services/trackbacks/66222.html聽聽聽聽聽聽Spring2.0涔嬪墠錛屾垜浠槸榪欎箞瀹氫箟鐨勶細
聽聽聽聽聽聽<bean聽id="singletonBean"聽class="myBean.singletonBean"/>
聽聽聽聽聽聽
<bean聽id="notSingletonBean"聽class="myBean.notSingletonBean"聽singleton="false"/>

聽聽聽聽聽聽鍦⊿pring2.0浠ュ悗錛屽洜涓哄鍔犱簡session, request, global session涓夌Bean鐨勮寖鍥達紝鎵浠ュ湪Bean鐨勯厤緗笂錛屼篃鍙戠敓浜嗘敼鍙橈紝涓嶈繃Bean鐨勯粯璁よ寖鍥翠粛鐒舵槸singleton銆?br />聽聽聽聽聽聽聽鏂扮殑鍐欐硶濡備笅錛?br />
<bean聽id="newBean"聽class="myBean.newBean"聽scope="session聽|聽request聽|聽global聽session聽|聽singleton聽|聽prototype">
<aop:scoped-proxy/>
</bean>

聽聽聽聽聽聽 瀵逛簬鏂板鍔犵殑涓夌鑼冨洿錛孲pring2.0瀵笲ean鐨勮姹傚氨鏄繀欏繪槸鍦╳eb鐜涓墠鑳藉畾涔夎繖涓夌鑼冨洿銆傚姣斾箣鍓嶇殑singletoBean鍜宯otSingletonBean鐨刋ML瀹氫箟錛屾垜浠彲浠ュ彂鐜?font color="#000000"><aop:scoped-proxy/> 榪欎釜鏂扮殑閰嶇疆欏廣?br />聽聽聽聽聽聽閭d箞錛岃繖鍙堟槸鎬庝箞涓鍥炰簨鍛紵
聽聽聽聽聽聽涓轟簡鐞嗚В涓轟粈涔堥渶瑕佽繖涓琛屽拰浠ュ墠瀹屽叏涓嶅悓鐨凚ean閰嶇疆錛屾垜浠渶瑕佸Spring2.0瀹炵幇session, request, global session涓夌Bean鐨勮寖鍥寸殑鍘熺悊榪涜鐮旂┒銆?br />聽聽聽聽聽聽鍙互鎯寵薄錛屽浜庡紑鍙戜漢鍛樻潵璇達紝鏈閲嶈鐨勬槸寰楀埌涓涓疄渚嬶紝璇ュ疄渚嬫彁渚涚粰鎴戜滑鐨勫氨鏄拰鎴戜滑闇瑕佺殑Bean涓鏍風殑鎺ュ彛銆傛棤璁烘垜浠畾涔夌殑Bean鐨勮寖鍥村浣曪紝瀹瑰櫒閮借姹傚彲浠ュ皢姝g‘鐨勫疄渚嬭繑鍥炵粰鎴戜滑錛岄偅涔堬紝閲囩敤浠g悊鏈哄埗鍒欏彲浠ュ畬鎴愯繖涓涓換鍔°備唬鐞嗘満鍒跺睆钄戒簡鍩轟簬Bean鎵瀹氫箟鐨勮寖鍥磋繑鍥炲疄渚嬬殑瑕佹眰錛屽悓鏃跺彲浠ユ彁渚涘拰鎴戜滑鎵瑕佹眰鐨凚ean鍚屾牱鐨勬帴鐨勫彛銆傚熀浜庤繖涓師鐞嗭紝
涓轟簡瀹炵幇鍩轟簬浣滅敤鍩熸満鍒剁殑Bean鐨勬帶鍒訛紝Spring2.0寮曞叆浜嗕竴涓柊鐨勬帴鍙o細
publicinterface聽Scope聽{
銆Object聽get(String聽name,聽ObjectFactory聽objectFactory);

銆Object聽remove(String聽name);
}


聽聽聽聽聽聽榪欎釜鎺ュ彛鏄敤鏉ヨ〃紺築ean鑼冨洿鐨勬帴鍙o紝鑰屽湪ConfigurableBeanFactory鎺ュ彛涓畾涔変簡Bean宸ュ巶鐩稿叧Scope娉ㄥ唽鐨勬柟娉曪紝浣垮緱鍙線Bean宸ュ巶涓姞鍏ユ柊鑼冨洿鐨凚ean銆?br />
publicinterface聽ConfigurableBeanFactory聽extends聽HierarchicalBeanFactory,
void聽registerScope(String聽scopeName,聽Scope聽scope);
void聽destroyScopedBean(String聽beanName);
}

聽聽聽聽聽聽鍚屾椂錛孲pring2.0鍦ˋbstractFactoryBean鐨刧etBean鏂規硶涓疄鐜頒簡瀵筍cope Bean鏀寔浠ュ強鍦╓ebApplicationContext涓敞鍐宻ession.request,global session涓夌Scope錛岃繖閲屽氨涓嶇戶緇創浠g爜浜嗐?br />聽聽聽聽聽 鏈鍚庨渶瑕佹彁閱掔殑鏄痝lobal session鏄簲鐢ㄤ簬鍩轟簬portlet鐨剋eb搴旂敤涓墠鏈夋剰涔夈?/font>


]]>
主站蜘蛛池模板: 成人亚洲性情网站WWW在线观看| 亚洲人成电影网站免费| 国产中文在线亚洲精品官网| 极品色天使在线婷婷天堂亚洲| 毛片免费视频在线观看| 久久乐国产综合亚洲精品| 免费能直接在线观看黄的视频| 色多多免费视频观看区一区| 午夜一区二区免费视频| 无码亚洲成a人在线观看| 国产无遮挡吃胸膜奶免费看 | 性xxxx视频播放免费| 精品亚洲456在线播放| 国产一区二区三区在线免费观看| 理论秋霞在线看免费| 亚洲色婷婷综合久久| 热re99久久6国产精品免费| 久久久亚洲AV波多野结衣| 久久久久国产精品免费免费搜索| 亚洲欧洲专线一区| 亚洲成人一区二区| 久久青青草原国产精品免费| 亚洲欧洲自拍拍偷午夜色| 好爽又高潮了毛片免费下载| 深夜a级毛片免费视频| 亚洲国产婷婷六月丁香| 亚洲最大免费视频网| 男人的天堂av亚洲一区2区| 国产亚洲精品成人AA片新蒲金| 午夜理伦剧场免费| 亚洲爆乳AAA无码专区| 日韩精品亚洲aⅴ在线影院| 亚洲一级毛片免费观看| 久久亚洲精品成人无码| 亚洲av永久无码精品古装片 | 免费理论片51人人看电影| xxxxx做受大片在线观看免费| 亚洲资源在线观看| 国产成人涩涩涩视频在线观看免费| 国产伦精品一区二区免费| 亚洲av无码不卡久久|