ï»??xml version="1.0" encoding="utf-8" standalone="yes"?>91久久国产,国产偷国产偷亚洲高清97cao,国产一区二区精品久久http://www.aygfsteel.com/juliashine/archive/2011/09/13/358522.htmlJuliashineJuliashineTue, 13 Sep 2011 03:44:00 GMThttp://www.aygfsteel.com/juliashine/archive/2011/09/13/358522.htmlhttp://www.aygfsteel.com/juliashine/comments/358522.htmlhttp://www.aygfsteel.com/juliashine/archive/2011/09/13/358522.html#Feedback1http://www.aygfsteel.com/juliashine/comments/commentRss/358522.htmlhttp://www.aygfsteel.com/juliashine/services/trackbacks/358522.htmlHaddop é…置引è“vçš?
WARN org.mortbay.log: /getimage: java.io.IOException: GetImage failed. java.io.IOException: Content-Length header is not provided by  the namenode when trying to fetch http://127.0.1.1:50090/getimage?getimage=1
最˜q‘在¾˜Èœ‹NameNodeçš„logæ—¶å‘现ç»å¸¸æœ‰˜q™ä¸€ŒDµä¿¡æ¯å‡ºçŽŽÍ¼š(x¨¬)



çœ‹æ¥æ˜¯SecondNameNode在å‘NameNode获å–Image时出的问题。虽然ä¸å½±å“hdfs使用åQŒä½†æ˜¯SecondName
备䆾功能失效åQŒä“Q其下åŽÖM¸‡ä¸€NameNode挂了那寞®±æ— å¤„申冤了ã€?br />¾l过Google大神帮助åQŒå¾—知需è¦åœ¨hdfs-site.xml中手动酾|®dfs.secondary.http.addressåQŒè¿™ä¸ªé…¾|®é¡¹çš„默认值如ä¸?br />
<property>
  
<name>dfs.namenode.secondary.http-address</name>
  
<value>0.0.0.0:50090</value>
  
<description>
    The secondary namenode http server address and port.
    If the port is 
0 then the server will start on a free port.
  
</description>
</property>
éœ€è¦æ˜Ž¼‹®æŒ‡æ˜ŽSecondNameåQŒä¸Žconf/master里é¢çš„å¿UîC¸€æ ?br />
<property>
  
<name>dfs.namenode.secondary.http-address</name>
  
<value>test-dn2:50090</value>
  
<description>
    The secondary namenode http server address and port.
    If the port is 
0 then the server will start on a free port.
  
</description>
</property>


Juliashine 2011-09-13 11:44 å‘表评论
]]>
使用jsæ“作dom元素旉™œ€æ³¨æ„IE与FFçš„ä¸å?/title><link>http://www.aygfsteel.com/juliashine/archive/2007/03/29/106982.html</link><dc:creator>Juliashine</dc:creator><author>Juliashine</author><pubDate>Thu, 29 Mar 2007 07:06:00 GMT</pubDate><guid>http://www.aygfsteel.com/juliashine/archive/2007/03/29/106982.html</guid><wfw:comment>http://www.aygfsteel.com/juliashine/comments/106982.html</wfw:comment><comments>http://www.aygfsteel.com/juliashine/archive/2007/03/29/106982.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/juliashine/comments/commentRss/106982.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/juliashine/services/trackbacks/106982.html</trackback:ping><description><![CDATA[1ã€IE有全局event对象window.eventåQŒFF没有åQŒFF中的 event åªèƒ½åœ¨äº‹ä»¶å‘生的现场使用åQŒå³å¿…须通过事äšg¾l‘å®šå‡½æ•°çš„å‚æ•°æ¥ä½¿ç”¨ã€?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.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">input </span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="text"</span><span style="COLOR: #ff0000"> name</span><span style="COLOR: #0000ff">="input_content"</span><span style="COLOR: #ff0000"> onkeydown</span><span style="COLOR: #0000ff">="exeCode(<font color="#000000">event</font>)"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img id="Codehighlighter1_95_238_Open_Image" onclick="this.style.display='none'; Codehighlighter1_95_238_Open_Text.style.display='none'; Codehighlighter1_95_238_Closed_Image.style.display='inline'; Codehighlighter1_95_238_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_95_238_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_95_238_Closed_Text.style.display='none'; Codehighlighter1_95_238_Open_Image.style.display='inline'; Codehighlighter1_95_238_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">script </span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #0000ff">></span><span id="Codehighlighter1_95_238_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><span id="Codehighlighter1_95_238_Open_Text"><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br /><img id="Codehighlighter1_115_237_Open_Image" onclick="this.style.display='none'; Codehighlighter1_115_237_Open_Text.style.display='none'; Codehighlighter1_115_237_Closed_Image.style.display='inline'; Codehighlighter1_115_237_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_115_237_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_115_237_Closed_Text.style.display='none'; Codehighlighter1_115_237_Open_Image.style.display='inline'; Codehighlighter1_115_237_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> exeCode() </span><span id="Codehighlighter1_115_237_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><span id="Codehighlighter1_115_237_Open_Text"><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />  </span><span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span><span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">å–得事äšg对象</span><span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">  </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> event </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> arguments[</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">] </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">||</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> window.event;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />  </span><span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span><span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">å–得事äšgçš„å‘生æºå¯¹è±¡</span><span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">  </span><span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> element </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> event.srcElement </span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">||</span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"> event.targetåQ?br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></div><br /><br />2ã€FireFox下没有preserveWhiteSpace˜q™ä¸ªå±žæ€§ï¼Œå?把空白也当作一个节ç‚V€‚而IEåˆ™é»˜è®¤äØ“(f¨´)falseåQŒå³æŠŠç©ºç™½ä¸çœ‹æˆä¸€ä¸ªèŠ‚ç‚V€‚所以在FireFox下previousSiblingå¯èƒ½æ˜¯ç©ºç™½èŠ‚ç‚¹ï¼Œé™¤éžä¸¤ä¸ªHTML标签之间没有ä»ÖM½•å½¢å¼çš„空根{€?br /><br />3ã€IE下å¯ä»¥ç”¨document.frames("name").document的方å¼å–å¾—frame中所嵌页é¢çš„document对象åQŒFF下å´ä¼?x¨¬)得到nullåQŒè§£å†³çš„的办法是document.getElementById(framename).contentWindow.documentåQŒä¹Ÿå¯ä»¥ä½¿ç”¨<br />window.frames[frameName].document 直接获å–frame里的document对象<br /><br /><br />æœ€åŽæŽ¨è一½‹‡æ–‡ç« ï¼š(x¨¬)<a title="Javascriptçš„IEå’ŒFirefox兼容性汇¾~? target="_blank">Javascriptçš„IEå’ŒFirefox兼容性汇¾~?/a><br /><img src ="http://www.aygfsteel.com/juliashine/aggbug/106982.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/juliashine/" target="_blank">Juliashine</a> 2007-03-29 15:06 <a href="http://www.aygfsteel.com/juliashine/archive/2007/03/29/106982.html#Feedback" target="_blank" style="text-decoration:none;">å‘表评论</a></div>]]></description></item><item><title>在Hibernate中酾|®Proxool˜qžæŽ¥æ±?/title><link>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89291.html</link><dc:creator>Juliashine</dc:creator><author>Juliashine</author><pubDate>Thu, 21 Dec 2006 07:13:00 GMT</pubDate><guid>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89291.html</guid><wfw:comment>http://www.aygfsteel.com/juliashine/comments/89291.html</wfw:comment><comments>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89291.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/juliashine/comments/commentRss/89291.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/juliashine/services/trackbacks/89291.html</trackback:ping><description><![CDATA[在Hibernate中酾|®Proxool˜qžæŽ¥æ±?br />1åQšåœ¨applicationContext.xml中酾|®SessionFactory<br /><bean id="sessionfactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"><br />    <property name="hibernateProperties"><br />        <props><br />            <prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop><br />            <prop key="hibernate.show_sql">true</prop><br />            <!--指定Proxoolé…置文äšg--><br />            <prop key="hibernate.proxool.properties">conf/proxool.properties</prop><br />            <!--<prop key="hibernate.proxool.xml">conf/proxool.xml</prop>--><br />            <!--指定Proxoolçš„aliasåQŒå¿…™åÖM¸ŽProxool的酾|®æ–‡ä»¶ä¸­çš„alias一è‡?-><br />            <prop key="hibernate.proxool.pool_alias">hibernate-oracle</prop><br />        </props><br />    </property><br /></bean><br />2åQšé…¾|®Proxool(conf/proxool.properties)<br />#jdbc-0.proxool.alias=mysql<br />#jdbc-0.proxool.driver-class=org.gjt.mm.mysql.Driver<br />#jdbc-0.proxool.driver-url=jdbc:mysql://localhost:3306/contestdb?user=root&password=1234&useUnicode=true&characterEncoding=utf8<br />#jdbc-0.user=root<br />#jdbc-0.password=1234<br /><br />jdbc-0.proxool.alias=hibernatea-oracle<br />jdbc-0.proxool.driver-class=oracle.jdbc.driver.OracleDriver<br />jdbc-0.proxool.driver-url=jdbc:oracle:thin:@172.16.2.6:1521:dbname<br />jdbc-0.user=username<br />jdbc-0.password=username<br />jdbc-0.proxool.maximum-connection-count=20<br />jdbc-0.proxool.house-keeping-test-sql=SELECT SYSDATE FROM DUAL;<br />#DEBUG, INFO, WARN, ERROR, FATAL.<br />jdbc-0.proxool.statistics-log-level=ERROR <br /><img src ="http://www.aygfsteel.com/juliashine/aggbug/89291.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/juliashine/" target="_blank">Juliashine</a> 2006-12-21 15:13 <a href="http://www.aygfsteel.com/juliashine/archive/2006/12/21/89291.html#Feedback" target="_blank" style="text-decoration:none;">å‘表评论</a></div>]]></description></item><item><title>struts2çš„struts.propertiesé…置文äšg详解åQˆè{åQ?/title><link>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html</link><dc:creator>Juliashine</dc:creator><author>Juliashine</author><pubDate>Thu, 21 Dec 2006 07:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html</guid><wfw:comment>http://www.aygfsteel.com/juliashine/comments/89290.html</wfw:comment><comments>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/juliashine/comments/commentRss/89290.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/juliashine/services/trackbacks/89290.html</trackback:ping><description><![CDATA[         The URL extension to use to determine if the request is meant for a Struts action <br />           用URLæ‰©å±•åæ¥¼‹®å®šæ˜¯å¦˜q™ä¸ªè¯äh±‚是被用作Struts actionåQŒå…¶å®žä¹Ÿž®±æ˜¯è®„¡½®Â action的厾~€åQŒä¾‹å¦‚login.doçš?do'å­—ã€?br /><br />struts.configuration<br />          The org.apache.struts2.config.Configuration implementation class<br />            org.apache.struts2.config.Configuration接å£å?br /><br />struts.configuration.files<br />          A list of configuration files automatically loaded by Struts <br />           struts自动加è²çš„一个酾|®æ–‡ä»¶åˆ—è¡?br /><br />struts.configuration.xml.reload<br />          Whether to reload the XML configuration or not<br />           是å¦åŠ è²xmlé…ç½®(true,false)<br /><br />struts.continuations.package<br />           The package containing actions that use Rife continuations<br />Â Â Â Â Â Â Â Â Â Â Â å«æœ‰actions的完整连¾l­çš„packageåç§°<br /><br />struts.custom.i18n.resources<br />          Location of additional localization properties files to load <br />           加è²é™„加的国际化属性文ä»Óž¼ˆä¸åŒ…å?propertiesåŽç¼€åQ?br /><br />struts.custom.properties<br />          Location of additional configuration properties files to load<br />           加è²é™„加的酾|®æ–‡ä»¶çš„ä½ç½®<br /><br /><br />struts.devMode<br />          Whether Struts is in development mode or not<br />           是å¦ä¸ºstruts开呿¨¡å¼?br /><br />struts.dispatcher.parametersWorkaround<br />          Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic<br />            åQˆæŸäº›ç‰ˆæœ¬çš„weblogic专用åQ‰æ˜¯å¦ä‹É用一个servletè¯äh±‚傿•°å·¥ä½œåŒºï¼ˆPARAMETERSWORKAROUNDåQ?br /><br />struts.enable.DynamicMethodInvocation<br />          Allows one to disable dynamic method invocation from the URL<br />            å…è®¸åŠ¨æ€æ–¹æ³•è°ƒç”?br /><br />struts.freemarker.manager.classname<br />          The org.apache.struts2.views.freemarker.FreemarkerManager implementation class <br />           org.apache.struts2.views.freemarker.FreemarkerManager接å£å?br /><br />struts.i18n.encoding<br />          The encoding to use for localization messages<br />           国际化信æ¯å†…ç ?br /><br />struts.i18n.reload<br />          Whether the localization messages should automatically be reloaded<br />           是å¦å›½é™…化信æ¯è‡ªåŠ¨åŠ è½ãq?br /><br />struts.locale<br />          The default locale for the Struts application<br />           默认的国际化地区信æ¯<br /><br />struts.mapper.class<br />          The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class<br />            org.apache.struts2.dispatcher.mapper.ActionMapper接å£<br /><br />struts.multipart.maxSize<br />          The maximize size of a multipart request (file upload)<br />           multipartè¯äh±‚ä¿¡æ¯çš„æœ€å¤§å°ºå¯¸ï¼ˆæ–‡äšg上传用) <br /><br />struts.multipart.parser<br />          The org.apache.struts2.dispatcher.multipart.<br />          MultiPartRequest parser implementation for a multipart request (file upload) <br />Â Â Â Â Â Â Â Â Â Â ä¸“äØ“(f¨´)multipartè¯äh±‚ä¿¡æ¯ä½¿ç”¨çš„org.apache.struts2.dispatcher.multipart.MultiPartRequestè§£æžå™¨æŽ¥å£ï¼ˆæ–‡äšg上传用)<br /><br /><br />struts.multipart.saveDir<br />          The directory to use for storing uploaded files <br />           讄¡½®å­˜å‚¨ä¸Šä¼ æ–‡äšg的目录夹<br /><br />struts.objectFactory<br />          The com.opensymphony.xwork2.ObjectFactory implementation class<br />           com.opensymphony.xwork2.ObjectFactory接å£åQˆspringåQ?br /><br />struts.objectFactory.spring.autoWire<br />          Whether Spring should autoWire or not<br />           是å¦è‡ªåЍ¾l‘定Spring<br /><br />struts.objectFactory.spring.useClassCache<br />          Whether Spring should use its class cache or not<br />           是å¦spring应该使用自èínçš„cache <br /><br />struts.objectTypeDeterminer<br />          The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class<br />            com.opensymphony.xwork2.util.ObjectTypeDeterminer接å£<br /><br />struts.serve.static.browserCache<br />  If static content served by the Struts filter should set browser caching header properties or not <br />           是å¦struts˜q‡æ×o(h¨´)器中æä¾›çš„陿€å†…容应该被‹¹è§ˆå™¨ç¼“存在头部属性中<br /><br />struts.serve.static<br />          Whether the Struts filter should serve static content or not <br />           是å¦struts˜q‡æ×o(h¨´)器应该æä¾›é™æ€å†…å®?br /><br />struts.tag.altSyntax<br />          Whether to use the alterative syntax for the tags or not <br />           是å¦å¯ä»¥ç”¨æ›¿ä»£çš„语法替代tags<br /><br />struts.ui.templateDir<br />          The directory containing UI templates<br />           UI templates的目录夹 <br /><br />struts.ui.theme<br />          The default UI template theme<br />           默认的UI template主题<br /><br />struts.url.http.port<br />          The HTTP port used by Struts URLs<br />           讄¡½®http端å£<br /><br />struts.url.https.port<br />          The HTTPS port used by Struts URLs <br />           讄¡½®https端å£<br /><br />struts.url.includeParams<br />          The default includeParams method to generate Struts URLs <br />          在url中äñ”生 默认的includeParams<br /><br /><br />struts.velocity.configfile<br />          The Velocity configuration file path<br />           velocityé…置文äšg路径<br /><br />struts.velocity.contexts<br />          List of Velocity context names<br />           velocityçš„context列表<br /><br /><br />struts.velocity.manager.classname<br />          org.apache.struts2.views.velocity.VelocityManager implementation class<br />           org.apache.struts2.views.velocity.VelocityManager接å£å?br /><br />struts.velocity.toolboxlocation<br />          The location of the Velocity toolbox<br />           velocity工具盒的ä½ç½®Â <br />struts.xslt.nocache<br />          Whether or not XSLT templates should not be cached<br />           是å¦XSLT模版应该被缓å­?br /><img src ="http://www.aygfsteel.com/juliashine/aggbug/89290.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/juliashine/" target="_blank">Juliashine</a> 2006-12-21 15:11 <a href="http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html#Feedback" target="_blank" style="text-decoration:none;">å‘表评论</a></div>]]></description></item><item><title>Struts 2.01æ•´åˆSpringhttp://www.aygfsteel.com/juliashine/archive/2006/12/15/87994.htmlJuliashineJuliashineFri, 15 Dec 2006 09:04:00 GMThttp://www.aygfsteel.com/juliashine/archive/2006/12/15/87994.htmlhttp://www.aygfsteel.com/juliashine/comments/87994.htmlhttp://www.aygfsteel.com/juliashine/archive/2006/12/15/87994.html#Feedback0http://www.aygfsteel.com/juliashine/comments/commentRss/87994.htmlhttp://www.aygfsteel.com/juliashine/services/trackbacks/87994.htmlStruts2 å‘布已ç»å¾ˆé•¿æ—‰™—´äº†ï¼Œä¸€ç›´æ²¡æœ‰é¡¾å¾—上学习(f¨¤n)åQŒæœ¬å‘¨å·¥ä½œæ¯”较轻æ¾ï¼ŒèŠÞq‚¹æ—‰™—´ç…§ç€ä¾‹å­åšäº†ä¸€ä¸‹ï¼Œä½†æ˜¯åœ¨ä¸ŽSpring 集æˆçš„æ—¶å€™å‡ºçŽ°é—®é¢˜ï¼Œaction找ä¸åˆ°Spring中定义的beanåQŒæŠ˜è…¾äº†ä¸¤ä¸ªå¤šå°æ—¶æ‰æœ€¾lˆæžå®šï¼Œå†›_®šæŠŠå¿ƒå¾—记录下æ¥ã€?br />
Struts2 é›†æˆ Spring çš?Web.xml 最½Ž€é…ç½®

<? xml version="1.0" encoding="UTF-8" ?>
< web-app  id ="WebApp_9"  version ="2.4"  xmlns ="http://java.sun.com/xml/ns/j2ee"  
    xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
 
    xsi:schemaLocation
="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >


    
< display-name > Struts 2.0 </ display-name >
    
    
< filter >
        
< filter-name > struts </ filter-name >         
        
< filter-class > org.apache.struts2.dispatcher.FilterDispatcher </ filter-class >

    
</ filter >
    
< filter-mapping >
        
< filter-name > struts </ filter-name >
        
< url-pattern > /* </ url-pattern >
    
</ filter-mapping >
    
    
< listener >
        
< listener-class >
            org.springframework.web.context.ContextLoaderListener
        
</ listener-class >
    
</ listener >
    
    
< welcome-file-list >
        
< welcome-file > index.html </ welcome-file >
    
</ welcome-file-list >
</ web-app >

此酾|®é€‚用于将Spring 的酾|®æ–‡ä»¶æ”¾åœ¨ä¸ŽWeb.xmlåŒä¸€ç›®å½•åQŒå³WEB-INF目录下,且酾|®æ–‡ä»‰™‡‡ç”¨é»˜è®¤å‘½åapplicationContext.xmlåQŒå¦‚æžœSpringé…置文äšg没有攑֜¨WEB-INF下或者采用了自定义å¿UŽÍ¼Œåˆ™Web.xml应该如下定义åQ?br />
<? xml version="1.0" encoding="UTF-8" ?>
< web-app  id ="WebApp_9"  version ="2.4"  xmlns ="http://java.sun.com/xml/ns/j2ee"  
    xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
 
    xsi:schemaLocation
="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >


    
< context-param >
        
< param-name > contextConfigLocation </ param-name >
        
< param-value > classpath*:applicationContext*.xml </ param-value >
    
</ context-param >
    
< filter >
        
< filter-name > struts </ filter-name >         
        
< filter-class > org.apache.struts2.dispatcher.FilterDispatcher </ filter-class >

    
</ filter >
    
< filter-mapping >
        
< filter-name > struts </ filter-name >
        
< url-pattern > /* </ url-pattern >
    
</ filter-mapping >
    
    
< listener >
        
< listener-class >
            org.springframework.web.context.ContextLoaderListener
        
</ listener-class >
    
</ listener >
    
    
< welcome-file-list >
        
< welcome-file > index.html </ welcome-file >
    
</ welcome-file-list >
</ web-app >

注愘q™é‡Œæ¯”上个酾|®å¤šå‡ºçš„™å?br />
   < context-param >
      < param-name > contextConfigLocation </ param-name >
      < param-value > classpath*:applicationContext*.xml </ param-value >
   </ context-param >

表示Springé…置文äšg攑֜¨CLASSPATH目录下,å³WEB-INF/classes目录下,å称为applicationContext*.xmlåQŒå…¶ä¸­â€?â€äØ“(f¨´)ä»ÀL„字符

注æ„åQŒè¿™˜q˜æ²¡å®Œï¼ŒCLASSPATH下有个struts.propertyæ–‡äšgåQŒå¿…™åÕdœ¨é‡Œé¢æ·ÕdŠ ä¸€è¡Œå†…å®¹ï¼š(x¨¬)
åQˆæˆ‘ž®±æ˜¯¾~ÞZº†˜q™ä¸ªå¯ÆD‡´action找ä¸åˆ°beanåQ?br />
struts.objectFactory = spring  

¾l™Springé…置文äšgçš?lt;beans>元素加上如下属æ€?br />

<beans default-autowire="autodetect">   

  …… …�br />

OK,é…置完毕åQå¯ä»¥ä‹É用了



Juliashine 2006-12-15 17:04 å‘表评论
]]>
æ•°æ®æŒ–掘学习(f¨¤n)½W”è®°ä¹?Classification模型选择 (一) ROC http://www.aygfsteel.com/juliashine/archive/2006/12/12/87246.htmlJuliashineJuliashineTue, 12 Dec 2006 06:25:00 GMThttp://www.aygfsteel.com/juliashine/archive/2006/12/12/87246.htmlhttp://www.aygfsteel.com/juliashine/comments/87246.htmlhttp://www.aygfsteel.com/juliashine/archive/2006/12/12/87246.html#Feedback0http://www.aygfsteel.com/juliashine/comments/commentRss/87246.htmlhttp://www.aygfsteel.com/juliashine/services/trackbacks/87246.html
解读ROC囄¡š„一些概念定ä¹?åQ?br />
真正åQˆTrue Positive , TPåQ‰è¢«æ¨¡åž‹é¢„测为正的正æ ähœ¬
å‡è´ŸåQˆF(tu¨¢n)alse Negative , FNåQ‰è¢«æ¨¡åž‹é¢„æµ‹ä¸ø™´Ÿçš„æ­£æ ähœ¬
凿­£åQˆF(tu¨¢n)alse Positive , FPåQ‰è¢«æ¨¡åž‹é¢„测为正的负æ ähœ¬
真负åQˆTrue Negative , TNåQ‰è¢«æ¨¡åž‹é¢„æµ‹ä¸ø™´Ÿçš„è´Ÿæ ähœ¬

真正率(True Positive Rate , TPRåQ‰æˆ–ç‰|•度(sensitivityåQ‰Â?br />   TPR = TP /åQˆTP + FNåQ‰Â?br />   正样本预‹¹‹ç»“果数 / 正样本实际数
å‡è´ŸçŽ‡ï¼ˆF(tu¨¢n)alse Negative Rate , FNRåQ‰Â?br />   FNR = FN /åQˆTP + FNåQ‰Â?br />   被预‹¹‹äØ“(f¨´)负的正样本结果数 / 正样本实际数
凿­£çŽ‡ï¼ˆF(tu¨¢n)alse Positive Rate , FPRåQ‰Â?br />   FPR = FP /åQˆF(tu¨¢n)P + TNåQ‰Â?br />   被预‹¹‹äØ“(f¨´)正的负样本结果数 /负样本实际数
真负率(True Negative Rate , TNRåQ‰æˆ–ç‰ÒŽ(gu¨©)Œ‡åº¦ï¼ˆspecificityåQ‰Â?br />   TNR = TN /åQˆTN + FPåQ‰Â?br />   负样本预‹¹‹ç»“果数 / 负样本实际数

目标属性的被选中的那个期望值称作是“正â€ï¼ˆpositiveåQ?br />
ROC曲线上几个关键点的解释:(x¨¬)

( TPR=0,FPR=0 ) 把æ¯ä¸ªå®žä¾‹éƒ½é¢„æµ‹ä¸ø™´Ÿ¾cÈš„模型
( TPR=1,FPR=1 ) 把æ¯ä¸ªå®žä¾‹éƒ½é¢„测为正¾cÈš„模型
( TPR=1,FPR=0 ) ç†æƒ³æ¨¡åž‹

此处囑փ以åŽå†è¡¥

一个好的分¾cÀL¨¡åž‹åº”该尽å¯èƒ½é è¿‘囑ÖŞ的左上角åQŒè€Œä¸€ä¸ªéšæœºçŒœ‹¹‹æ¨¡åž‹åº”ä½äºŽ˜qžæŽ¥ç‚¹ï¼ˆTPR=0,FPR=0åQ‰å’ŒåQˆTPR=1,FPR=1åQ‰çš„ä¸Õd¯¹è§’线上ã€?br />
ROC曲线下方的颿U¯ï¼ˆAUCåQ‰æä¾›äº†è¯„ä­h(hu¨¢n)模型òq›_‡æ€§èƒ½çš„å¦ä¸€¿U方法。如果模型是完美的,那么它的AUG = 1åQŒå¦‚果模型是个简å•çš„éšæœºçŒœæµ‹æ¨¡åž‹åQŒé‚£ä¹ˆå®ƒçš„AUG = 0.5åQŒå¦‚果一个模型好于å¦ä¸€ä¸ªï¼Œåˆ™å®ƒçš„æ›²¾U¿ä¸‹æ–šw¢¿U¯ç›¸å¯¹è¾ƒå¤§ã€?br />
Oracle 论å›ä¸Šå¯¹ROC 的解é‡?/span>
http://forums.oracle.com/forums/thread.jspa?threadID=415870&tstart=15

Juliashine 2006-12-12 14:25 å‘表评论
]]>
Ö÷Õ¾Ö©Öë³ØÄ£°å£º ·ðɽÊÐ| ÖÜÖÁÏØ| °²Î÷ÏØ| Õű±ÏØ| ÃûÉ½ÏØ| Ã÷Ë®ÏØ| ÎÌÅ£ÌØÆì| ³Ç¹ÌÏØ| ÎäÒåÏØ| ¾ÆÈªÊÐ| º£ÃÅÊÐ| ÄÚ»ÆÏØ| °ÔÖÝÊÐ| ÉϺ¼ÏØ| ¼ªË®ÏØ| Äþ²¨ÊÐ| ÖÛɽÊÐ| º¼½õÆì| Â¡Ò¢ÏØ| ɽÒõÏØ| ºÍÕþÏØ| Êè¸½ÏØ| ·ÚÑôÊÐ| ¡ÁÖ| ÌÒÔ°ÏØ| À¼ÖÝÊÐ| Çø¡£| ºÏ½­ÏØ| ÒÇÕ÷ÊÐ| лÎ| µÂÖÝÊÐ| Öñ±±ÊÐ| ½ðÃÅÏØ| ÓݳÇÏØ| ÁÉÑôÊÐ| ÏæÒõÏØ| ´ÈÀûÏØ| ±öÑôÏØ| ºÓ±±Çø| ¿ÂÆºÏØ| °åÇÅÊÐ|