锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品69,精品福利一区,一区二区三区韩国免费中文网站 http://www.aygfsteel.com/guming123416/category/6972.htmljava瀛︿範(fàn)澶╁爞,涓漢鍏充簬JAVA鐨勮鍧沚bs.javaworker.cn,嬈㈣繋澶у璁塊棶 zh-cn Fri, 30 Mar 2007 06:54:08 GMT Fri, 30 Mar 2007 06:54:08 GMT 60 eclipse鎼厤Resin寮鍙慡truts搴旂敤涔嬬幆澧冪瘒 http://www.aygfsteel.com/guming123416/archive/2007/03/30/107472.htmllovajava_ye lovajava_ye Fri, 30 Mar 2007 06:27:00 GMT http://www.aygfsteel.com/guming123416/archive/2007/03/30/107472.html http://www.aygfsteel.com/guming123416/comments/107472.html http://www.aygfsteel.com/guming123416/archive/2007/03/30/107472.html#Feedback 0 http://www.aygfsteel.com/guming123416/comments/commentRss/107472.html http://www.aygfsteel.com/guming123416/services/trackbacks/107472.html JDK涓嬮潰鏈変竴涓潪甯擱噸瑕佺殑鐩綍錛屽嵆錛?$JAVA_HOME/jre/lib錛屽ぇ瀹剁敤寰楁渶鏅亶鐨勫氨鏄?JAVA_HOME/jre/lib/ext鐩綍錛堝彲浠ユ斁緗父鐢ㄧ殑JAR鎵╁睍鍖咃級(jí)浜?jiǎn)锛屾垜鍠湅脾灏唈tds-1.2.jar鏂囦歡鎷瘋礉鍒版鐩綍涓嬶紝褰撹繍琛屾墦鍖呭ソ鐨凧AR鏃訛紝涓嶉渶瑕佷負(fù)姣忎竴涓狫AR閰嶇疆鏁版嵁搴撻┍鍔ㄥ姞杞借礬寰勶紙褰撶劧錛屼綘涔熷彲浠ュ皢jtds-1.2.jar鍔犲叆鍒扮郴緇熺幆澧冨彉閲忎腑錛屽彧鏄綘寰桼eboot your computer鑰屽凡錛夈?br /> 濂戒簡(jiǎn)錛屼笅闈㈣█褰掓浼狅紝濡傛灉浣犵敤myeclipse閰嶇疆浜?jiǎn)resin鏈嶅姟鍣紝浣犱細(xì)鍙戠幇myeclipse騫朵笉鑳藉惎鍔╮esin錛岃屽湪鎺у埗鍙頒笂鎵撳嵃鍑烘潵鐨勬槸resin.conf:241: Required file '\conf\app-default.xml' can not be read for resin:import.錛屽緢鏄庢樉錛屾槸緋葷粺鎵句笉鍒癮pp-default.xml'鏂囦歡錛岃岃繖涓枃浠剁‘瀹炲湪$RESIN_HOME/conf/鐩綍涓嬶紝鎵撳紑resin.conf錛屽畾浣嶅埌133琛岋紝鍙戠幇閰嶇疆鏂囦歡鏄繖鏍風(fēng)殑錛?lt;resin:import path="${resin.home}/conf/app-default.xml"/>錛屽洜涓?{resin.home}/灝辨槸Resin鐨勫綋鍓嶇洰褰曪紝鎵浠ユ垜浠彲浠ユ崲鎴?lt;resin:import path="./conf/app-default.xml"/>錛屽啀鍚姩錛孫K銆?br /> resin.conf閲岄潰榪樻湁涓涓湴鏂規(guī)瘮杈冩湁鎰忔濓紝涓旂湅211琛屼唬鐮侊細(xì)<web-app-deploy path="webapps"/>錛岀郴緇熼厤緗殑Web搴旂敤鐩綍涓?RESIN_HOME/webapps錛岃孍clipse宸ョ▼鍙戝竷鍚庢槸鍦?RESIN_HOME/deploy錛屾墍浠ユ垜浠共鑴嗗氨涓嶇敤myeclipse閲岀殑绔欑偣鍙戝竷鍔熻兘錛岀洿鎺ヤ慨鏀箁esin.conf鏂囦歡錛屽姞杞戒竴涓閮ㄧ洰褰曪紝灝嗗畠鎵嬫寚鍚戜綘鐨勫伐紼嬶紝鎵懼埌濡備笅浠g爜錛?40琛岋級(jí)<web-app id="/" root-directory="webapps/ROOT"/>錛屽湪鍚庨潰鍔犱笂<web-app id="/import" root-directory="D:/eclipse/work/Import/WebRoot"/>銆?br /> 濂藉儚闂榪樹(shù)笉姝㈣繖涔堢畝鍗曪紝鍥犱負(fù)鎴戠殑D:/eclipse/work/Import/WebRoot宸ョ▼鏄敤Struts妗嗘灦寮鍙戠殑錛屾墍鏈夊湪resin鍚姩import鐨勬椂鍊欙紝鎶ヤ簡(jiǎn)濡備笅鐨勯敊璇細(xì) javax.xml.parsers.SAXParserFactory: org.apache.xerces.jaxp.SAXParserFactoryImpl XML瑙i噴鍣ㄧ殑閿欒錛岄『渚垮湪Google涓婁竴鎼滐紝鎵懼埌浜?jiǎn)涓壙U嶈В鍐沖姙娉曪紝鍙楁帹鑽愮殑鏂規(guī)濡備笅錛?br />鍦?$JAVA_HOME/jre/lib鐩綍涓嬫柊寤篹ndorsed鐩綍錛堝鏋滄病鏈夌殑璇濓級(jí)錛岀劧鍚庡皢浣犲伐紼媗ib鐩綍涓嬬殑xercesImpl.jar鎷瘋礉鍒板垰寤虹殑閭d釜鐩綍閲岄潰錛岄棶棰樺嵆鍙В鍐熾?br /> 涓嶆帹鑽愬湪$JAVA_HOME/jre/lib涓嬮潰鏂板緩鍐呭涓簀avax.xml.parsers.SAXParserFactory: org.apache.xerces.jaxp.SAXParserFactoryImpl鐨刯axp.properties鏂囦歡錛屽綋鐒?dòng)灱屽鏋滀綘鍑嗗寮鸿杩欎箞骞茬殑璇濆Q屼綘鐨凾omcat灝卞彧鑳芥殫鏃犲ぉ鏃ヤ簡(jiǎn)銆?br /> 涓嬮潰鏄檮鍔犲唴瀹?br /> 闄勪竴錛欰pache涓嶳esin闆嗘垚 1. 鏇存敼Apache鐨勬枃妗g洰褰曪細(xì)鍦╤ttpd.conf涓壘鍒癉ocumentRoot錛屽皢鍏跺悗鍙屽紩鍙蜂腑鐨勫唴瀹規(guī)崲鎴?D:/HttpServer/webapps/" 2. 閰嶇疆Apache鐨凴esin妯″潡錛氬湪httpd.conf鏈鍚庢坊鍔犲涓嬩唬鐮?br />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) LoadModule caucho_module "D:/HttpServer/resin/win32/apache-2.2/mod_caucho.dll" 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) <IfModule mod_caucho.c> 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) 聽(tīng) ResinConfigServer localhost 6800 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) 聽(tīng) CauchoStatus yes 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) </IfModule> 3. 鏇存敼榛樿鐨勮闂枃浠訛細(xì)鍦╤ttpd.conf涓壘鍒癉irectoryIndex 錛屽湪鍏跺悗娣誨姞index.jsp index.php 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) 娉ㄦ剰錛氭瘡涓枃浠朵箣闂寸敤絀烘牸闂撮殧寮 4. Resin铏氭嫙鐩綍閰嶇疆錛氬湪resin.conf涓壘鍒板涓嬭<host id="" root-directory=".">錛岀劧鍚庡姞鍏?br />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) <web-app id="/import" root-directory="D:/HttpServer/webapps/import"/> 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) id涓鴻闂礬寰勶紝root-directory涓烘枃妗g洰褰曟墍鍦ㄨ礬寰?br />5. 璁劇疆Resin涓鴻嚜鍚姩錛氫綘蹇呴』鍏堝湪緋葷粺鐜鍙橀噺涓厤緗甁AVA_HOME錛岀劧鍚庡湪鍛戒護(hù)琛岀獥鍙d腑榪涘叆Resin鐩綍錛岃緭鍏ttpd -install錛堝畨瑁匯esin涓篧indows緋葷粺鏈嶅姟錛夛紝httpd -remove錛堢Щ闄も︹︼級(jí) 緇忚繃浠ヤ笂姝ラ錛孯esin灝卞彲浠ョ洃鍚鐞嗘墍鏈堿pache涓嶈兘澶勭悊鐨勬枃浠訛紝鍖呮嫭.jsp, .do鍙?qiáng)鍏跺畠鎺у埗鍣ㄨ矾寰勫Q屽茍鍚屾椂瑙e喅浜?jiǎn)鐢?0绔彛璁塊棶鏃跺浘鐗囩浉瀵硅礬寰勪笉瀵圭殑闂 闄勪簩錛欰pache涓姞鍏HP澶勭悊妯″潡錛屽茍涓斿睆钄絉esin3.1鐨凱HP瑙i噴妯″潡 1. 灞忚斀resin鐨凱HP澶勭悊妯″潡錛歳esin浠?.0寮濮嬫敮鎸乸hp錛屽叾3.1鐗堟湰鐨凱HP瑙i噴閰嶇疆鏄湪app-default.xml涓紙涓巖esin.conf鍚屼竴涓洰褰曪級(jí)錛屽彧瑕佸servlet閰嶇疆姣旇緝鐔熸?zhèn)夌殑閮借兘鍦╝pp-default.xml涓交鏄撳睆钄絇HP瑙i噴鍔熻兘錛屾墦寮app-default.xml鍚庯紝鐢?lt;!--聽(tīng) -->灞忚斀濡備笅浠g爜鍗沖彲錛?br />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) <servlet servlet-name="resin-php" 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) servlet-class="com.caucho.quercus.servlet.QuercusServlet"> 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) </servlet> 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/> 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) <welcome-file>index.php</welcome-file> 2. 閰嶇疆Apache鐨凱HP澶勭悊妯″潡錛氬湪httpd.conf鏈鍚庢坊鍔犲涓嬩唬鐮侊紙鎴戠殑PHP鏄鍦―:/HttpServer/php5錛?br />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) ## Add php5 module 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) LoadModule php5_module "D:/HttpServer/php5/php5apache2_2.dll" 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) AddType application/x-httpd-php .php 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) # Configure php.ini path 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) PHPIniDir "D:/HttpServer/php5/" 鍛靛懙錛屽洜涓篟esin鐨凱HP閰嶇疆涓嶅お鐔熸?zhèn)夊Q岀綉涓婄殑璧勬枡涔熸瘮杈冨皯錛屾墍浠ヨ繕鏄敤浜?jiǎn)Apache+PHP鐨勫鐞嗘柟寮忋?br /> ]]>鐢ㄥ疄渚嬭鏄庡浣曠敤JavaScript鐢熸垚XML http://www.aygfsteel.com/guming123416/archive/2006/01/23/29006.htmllovajava_ye lovajava_ye Mon, 23 Jan 2006 05:34:00 GMT http://www.aygfsteel.com/guming123416/archive/2006/01/23/29006.html http://www.aygfsteel.com/guming123416/comments/29006.html http://www.aygfsteel.com/guming123416/archive/2006/01/23/29006.html#Feedback 0 http://www.aygfsteel.com/guming123416/comments/commentRss/29006.html http://www.aygfsteel.com/guming123416/services/trackbacks/29006.html <script language="javascript"> <!-- var doc = new ActiveXObject("Msxml2.DOMDocument"); //ie5.5+,CreateObject("Microsoft.XMLDOM") //鍔犺澆鏂囨。 //doc.load("b.xml"); //鍒涘緩鏂囦歡澶? var p = doc.createProcessingInstruction ("xml","version=鈥欌?.0鈥欌?nbsp; encoding=鈥欌檊b2312鈥欌?); //娣誨姞鏂囦歡澶? doc.appendChild(p); //鐢ㄤ簬鐩存帴鍔犺澆鏃惰幏寰楁牴鎺ョ偣 //var root = doc.documentElement; //涓ょ鏂瑰紡鍒涘緩鏍規(guī)帴鐐? // var root = doc.createElement("students"); var root = doc.createNode(1,"students",""); //鍒涘緩瀛愭帴鐐? var n = doc.createNode(1,"ttyp",""); //鎸囧畾瀛愭帴鐐規(guī)枃鏈? //n.text = " this is a test"; //鍒涘緩瀛欐帴鐐? var o = doc.createElement("sex"); o.text = "鐢?; //鎸囧畾鍏舵枃鏈? //鍒涘緩灞炴? var r = doc.createAttribute("id"); r.value="test"; //娣誨姞灞炴? n.setAttributeNode(r); //鍒涘緩絎簩涓睘鎬?nbsp; var r1 = doc.createAttribute("class"); r1.value="tt"; //娣誨姞灞炴? n.setAttributeNode(r1); //鍒犻櫎絎簩涓睘鎬? n.removeAttribute("class"); //娣誨姞瀛欐帴鐐? n.appendChild(o); //娣誨姞鏂囨湰鎺ョ偣 n.appendChild(doc.createTextNode ("this is a text node.")); //娣誨姞娉ㄩ噴 n.appendChild(doc.createComment ("this is a comment\n")); //娣誨姞瀛愭帴鐐? root.appendChild(n); //澶嶅埗鎺ョ偣 var m = n.cloneNode(true); root.appendChild(m); //鍒犻櫎鎺ョ偣 root.removeChild(root.childNodes(0)); //鍒涘緩鏁版嵁孌? var c = doc.createCDATASection ("this is a cdata"); c.text = "hi,cdata"; //娣誨姞鏁版嵁孌? root.appendChild(c); //娣誨姞鏍規(guī)帴鐐? doc.appendChild(root); //鏌ユ壘鎺ョ偣 var a = doc.getElementsByTagName("ttyp"); //var a = doc.selectNodes("http://ttyp"); //鏄劇ず鏀規(guī)帴鐐圭殑灞炴? for(var i= 0;i<a.length;i++) { alert(a[i].xml); for(var j=0;j<a[i].attributes.length;j++) { alert(a[i].attributes[j].name); } } //XML淇濆瓨錛堥渶瑕佸湪鏈嶅姟绔紝瀹㈡埛绔敤FSO錛? //doc.save(); //鏌ョ湅鏍規(guī)帴鐐筙ML if(n) { alert(n.ownerDocument.xml); } //--> </script> ]]>
主站蜘蛛池模板:
崇明县 |
亳州市 |
乐平市 |
中牟县 |
仁寿县 |
芦溪县 |
莲花县 |
托克托县 |
怀集县 |
靖安县 |
桐乡市 |
榆树市 |
普兰县 |
嵊泗县 |
文化 |
始兴县 |
佳木斯市 |
兰州市 |
河曲县 |
北海市 |
乌海市 |
郓城县 |
资源县 |
弥勒县 |
锦州市 |
通城县 |
临桂县 |
玛沁县 |
青河县 |
山阴县 |
慈溪市 |
北票市 |
望奎县 |
广宗县 |
曲沃县 |
宣汉县 |
郑州市 |
白山市 |
航空 |
五华县 |
辽宁省 |