锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品乱码久久久久蜜桃,自拍偷自拍亚洲精品被多人伦好爽 ,亚洲综合无码一区二区三区http://www.tkk7.com/liuwuping12064915/category/48779.html 鍧氭寔 闅忓績鑰屽姩 璧拌嚜宸辯殑璺?/description>zh-cnFri, 03 Jun 2011 01:57:46 GMTFri, 03 Jun 2011 01:57:46 GMT60tomcat7鐨勯厤緗?/title><link>http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351617.html</link><dc:creator>澶╃┖甯冭摑</dc:creator><author>澶╃┖甯冭摑</author><pubDate>Thu, 02 Jun 2011 09:54:00 GMT</pubDate><guid>http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351617.html</guid><wfw:comment>http://www.tkk7.com/liuwuping12064915/comments/351617.html</wfw:comment><comments>http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351617.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuwuping12064915/comments/commentRss/351617.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuwuping12064915/services/trackbacks/351617.html</trackback:ping><description><![CDATA[<span id="lzdnpl3" class="Apple-style-span" style="color: #323e32; font-family: simsun; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">  <br /><br />鍘熸枃杞澆鑷細</p></span><span id="9vt9h3t" class="Apple-style-span" style="color: #323e32; font-family: simsun; "><a >http://blog.sina.com.cn/s/blog_70b7bbf20100mhiv.html</a></span><span id="9ff9j3f" class="Apple-style-span" style="color: #323e32; font-family: simsun; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">   Tomcat7宸茬粡鍙戝竷澶氭椂錛孴omcat7澧炲姞浜嗗Servlet 3.0,JSP 2.2鍜孞SP-EL 2銆?鐨勬敮鎸併佹敮鎸亀eb application鍐呭瓨娉勯湶鐨勬嫻嬪拰闃叉姢絳夊緢澶氭柊鍔熻兘銆傛湰鐗囨暀紼嬩富瑕佷粙緇嶅浣曢厤緗甌omcat7銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">涓銆佽蔣浠朵笅杞?br /> <wbr> <wbr> <wbr> 棣栧厛闇瑕佷笅杞絁ava Jdk浠ュ強Tomcat7銆侸DK涓嬭澆鍦板潃錛氭渶鏂頒負JDK6 update22, Tomcat7涓嬭澆鍦板潃錛氭渶鏂頒負Tomcat7.02 Beta銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">浜屻佽蔣浠跺畨瑁呭拰閰嶇疆<br /> <wbr> <wbr> <wbr> 1.棣栧厛瀹夎JDK錛岀洿鎺ョ偣鍑誨畨瑁呭嵆鍙?姣斿榛樿瀹夎鐨勮礬寰勪負錛欳:\Program Files\Java\jdk1.6.0_22銆傚畨瑁呬箣鍚庨渶瑕佽瀹氱幆澧冨彉閲忋傚湪鎴戠殑鐢佃剳->灞炴?>楂樼駭->鐜鍙橀噺->緋葷粺鍙橀噺涓坊鍔犱互涓嬬幆澧冨彉閲忥細(鍋囪浣犵殑jdk瀹夎鐩綍濡備笂璁劇疆)</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr> <wbr> <wbr> 鏂板緩鍙橀噺鍚嶏細 <font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">JAVA_HOME</font>,鍊?value)涓猴細<font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">C:\Program Files\Java\jdk1.6.0_22<br /></font> <wbr> <wbr> <wbr> 鏂板緩鍙橀噺鍚嶏細<font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">classpath</font> ,鍊?value)涓猴細 <font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;</font> <wbr> (.;涓瀹氫笉鑳藉皯錛屽洜涓哄畠浠h〃褰撳墠璺緞)<br /> <wbr> <wbr> <wbr> 鏌ユ壘鍙橀噺鍚嶏細path ,澧炲姞鍊?value)涓?font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">錛?JAVA_HOME%\bin;</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><br />娣誨姞瀹屾瘯錛岀‘瀹氬嵆鍙傛帴涓嬫潵綆鍗曟祴璇曠幆澧冨彉閲忔槸鍚﹂厤緗紜細</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">public class Test{<br /> <wbr> <wbr> <wbr> public static void main(String args[]){<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> System.out.println("Hello Leyond");<br /> <wbr> <wbr> <wbr> }<br />}<br /></font> <wbr><br />灝嗕互涓婁唬鐮佹嫹璐濅繚瀛樻垚Test.java鏂囦歡銆傜劧鍚庡懡浠よ紿楀彛(xp:鍦ㄨ繍琛岃緭鍏md,vista鍜寃in7鐩存帴鍦ㄦ悳绱㈡涓緭鍏md)錛孋D鍒版枃浠舵墍鍦ㄧ殑鐩綍錛岀劧鍚庨敭鍏ヤ笅鍒楀懡浠わ細<br />javac Test.java<br />java Test</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">娉ㄦ剰絎簩涓懡浠ゆ病鏈?java鍚庣紑銆傚鏋滅湅鍒?#8220;Hello Leyond”錛屽垯琛ㄦ槑jdk鐜鍙橀噺閰嶇疆鎴愬姛錛屾病鏈夌殑璇濓紝媯鏌ヨ嚜宸辯殑閰嶇疆鎯呭喌銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">2. Tomcat7瀹夎鍜岄厤緗?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr> <wbr> <wbr> 涓嬭澆zip鏂囦歡涔嬪悗鐩存帴瑙e帇鍒版煇涓洰褰曚笅錛屾瘮濡傦細C:\itdevelop\Tomcat7銆傜劧鍚庡湪鎴戠殑鐢佃剳->灞炴?>楂樼駭->鐜鍙橀噺->緋葷粺鍙橀噺涓坊鍔犱互涓嬬幆澧冨彉閲忥細</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr> <wbr> <wbr> 鏂板緩鍙橀噺鍚? <font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">TOMCAT_HOME</font>, 鍊?value)涓猴細<font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">C:\itdevelop\Tomcat7</font><br /> <wbr> <wbr> <wbr> 鏌ユ壘鍙橀噺鍚? <font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">classpath</font>, 澧炲姞鍊間負<font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#000000" style="word-wrap: normal; word-break: normal; line-height: 21px; ">錛?/font>%TOMCAT_HOME%\common\lib<br /></font> <wbr> <wbr> <wbr> 澧炲姞鍚庣殑classpath鐨勫間負<font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#000000" style="word-wrap: normal; word-break: normal; line-height: 21px; ">錛?/font>.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME%\lib</font>銆?br /> <wbr> <wbr> <wbr> 鏈鍚庤繘鍏omcat7瀹夎鐩綍涓嬬殑Bin鐩綍錛屽惎鍔═omcat,鍦ㄦ祻瑙堝櫒涓緭鍏ワ細<a href="http://localhost:8080/" style="text-decoration: none; color: #006b77; ">http://localhost:8080/</a>錛岃嫢鍙互鐪嬪埌Tomcat7鐨勬榪庣晫闈紝琛ㄧずTomcat7閰嶇疆鎴愬姛浜嗐?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">涓夈佹柊寤簑ebApp<br /> <wbr> <wbr> <wbr> 榪欓噷浠嬬粛濡備綍鎼緩涓涓狫SP綆鍗曠殑搴旂敤銆傞鍏堝埌Tomcat7鐩綍涓媤ebapps鐩綍錛屼緥濡傦細C:\itdevelop\Tomcat7\webapps錛岃鐩綍瀛樻斁浜哛OOT錛宒ocs,examples絳夌洰褰曪紝ROOT瀛樻斁鐨勬槸嬈㈣繋鐣岄潰鐨勪唬鐮侊紝docs涓昏鏄枃妗o紝examples涓彲浠ユ煡鐪嬪悇縐嶄緥瀛愩傛帴涓嬫潵鐪嬬湅濡備綍鏂板緩涓涓睘浜庤嚜宸辯殑jsp搴旂敤紼嬪簭銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">鎿嶄綔濡備笅錛?br /> <wbr> 1.鍦╳ebapps涓嬫柊寤簃yapp鐩綍銆?br /> <wbr> 2.myapp涓嬫柊寤轟竴涓洰褰昗EB-INF錛屾敞鎰忥紝鐩綍鍚嶇О鏄尯鍒嗗ぇ灝忓啓鐨勩?br /> <wbr> 3.WEB-INF涓嬫柊寤轟竴涓枃浠秝eb.xml錛屽唴瀹瑰涓?</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; "><?xml version="1.0" encoding="ISO-8859-1"?><br /><web-app version="3.0"<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> xmlns="</font><a style="text-decoration: none; color: #006b77; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">http://java.sun.com/xml/ns/javaee</font></a><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">"<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> xmlns:xsi="</font><a style="text-decoration: none; color: #006b77; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">http://www.w3.org/2001/XMLSchema-instance</font></a><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">"<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> xsi:schemaLocation="</font><a style="text-decoration: none; color: #006b77; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">http://java.sun.com/xml/ns/javaee</font></a><a style="text-decoration: none; color: #006b77; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd</font></a><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">"><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <display-name>My Web Application</display-name><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <description><br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> A application for test.<br /> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> <wbr> </description><br /></web-app></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">4. 鍦╩yapp涓嬫柊寤轟竴涓祴璇曠殑jsp欏甸潰錛屾枃浠跺悕涓篿ndex.jsp錛屾枃浠跺唴瀹瑰涓?<br /><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; "><html><br /> <wbr> <body><br /> <wbr> <wbr> <wbr> <center> Now time is: <%=new java.util.Date()%></center><br /> <wbr> </body><br /></html></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">5. 鍚姩Tomcat,鍦ㄦ祻瑙堝櫒杈撳叆<a href="http://localhost:8080/myapp/index.jsp" style="text-decoration: none; color: #006b77; ">http://localhost:8080/myapp/index.jsp</a>鐪嬪埌褰撳墠鏃墮棿鐨勮瘽璇存槑灝辨垚鍔熶簡銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">鍥涖佹柊寤篠ervlet<br /> <wbr> <wbr> <wbr> 鍦ㄤ箣鍓峬yapp鐩笅鐨?WEB-INF/classes/test鐩綍涓嬫柊寤篐elloWorld.java(鑻ユ病鏈塩lass,test鐩綍錛岃鏂板緩)銆侶elloWorld鍐呭濡備笅錛?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">package test;<br />import java.io.*;<br />import javax.servlet.*;<br />import javax.servlet.http.*;</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; ">public class HelloWorld extends HttpServlet{<br /> <wbr> <wbr> <wbr> public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{<br /> <wbr> <wbr> <wbr> <wbr> response.setContentType("text/html");<br /> <wbr> <wbr> <wbr> <wbr> PrintWriter out = response.getWriter();<br /> <wbr> <wbr> <wbr> <wbr> out.println("<html><head><title>");<br /> <wbr> <wbr> <wbr> <wbr> out.println("This is my first Servlet");<br /> <wbr> <wbr> <wbr> <wbr> out.println("</title></head><body>");<br /> <wbr> <wbr> <wbr> <wbr> out.println("<h1>Hello,World!</h1>");<br /> <wbr> <wbr> <wbr> <wbr> out.println("</body></html>");<br /> <wbr> <wbr> }<br />}</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr> <wbr> <wbr> 涔嬪悗鐢╦avac HelloWorld.java鏉ョ紪璇戣鏂囦歡銆傚樿嫢鍑虹幇”package javax.servlet does not exist“錛岃鎶奀:\itdevelop\Tomcat7\lib鐩綍涓嬬殑servlet-api.jar鎷瘋礉鍒癈:\Program Files\Java\jre6\lib\ext錛岄噸鍚數鑴戯紝鍐嶆緙栬瘧鍗沖彲銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">鐩墠C:\itdevelop\Tomcat7\webapps\myapp鐨勭洰褰曠粨鏋勫涓嬶細</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">./index.jsp<br />./WEB-INF/web.xml<br />./WEB-INF/classes/test/HelloWorld.class (緙栬瘧HelloWorld.java鐢熸垚鐨?</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">鐒跺悗鍦ㄦ祻瑙堝櫒涓緭鍏?a href="http://localhost:8080/myapp/HelloWorld" style="text-decoration: none; color: #006b77; ">http://localhost:8080/myapp/HelloWorld</a>,浜庢槸Server浼楁湜鎵褰掔殑鎶ラ敊浜?Error 404–Not Found 鎬庝箞鍥炰簨鍛紵鎴戜滑榪橀渶瑕侀厤緗甋ervlet鐨勪箣琛岀幆澧冦傛墦寮WEB-INF鐩綍涓嬬殑web.xml錛屽湪<web-app></web-app>娣誨姞涓嬮潰榪欐紼嬪簭錛?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; "><servlet><br /> <wbr> <wbr> <wbr> <servlet-name>HelloWorld</servlet-name><br /> <wbr> <wbr> <wbr> <servlet-class>test.HelloWorld</servlet-class><br /> <wbr></servlet></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><font color="#ED1C24" style="word-wrap: normal; word-break: normal; line-height: 21px; "><servlet-mapping><br /> <wbr> <wbr> <wbr> <servlet-name>HelloWorld</servlet-name><br /> <wbr> <wbr> <wbr> <url-pattern>/HelloWorld</url-pattern><br /> <wbr></servlet-mapping></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "> <wbr> <wbr> <wbr> 榪欐xml鍐呭錛岄鍏堟寚瀹歴ervlet鐨勫悕瀛楋紝綾葷殑鍚嶅瓧銆傜劧鍚庢妸servlet鏄犲皠鍒頒竴縐峌RL妯″紡錛屼嬌寰楅氳繃URL鏉ヨ闂繖涓猻ervlet銆備慨鏀逛箣鍚庯紝鑻ラ渶瑕侀噸鍚疶omcat,鐒跺悗嫻忚<a href="http://localhost:8080/myapp/HelloWorld" style="text-decoration: none; color: #006b77; ">http://localhost:8080/myapp/HelloWorld</a>涓涓狧ello,World!絳夌潃浣狅紝濡傛灉浣犵湅鍒頒簡錛岃〃紺簊ervlet涔熸垚鍔熶簡銆?div style="display: inline-block; "></div></p></span><span id="thz9931" class="Apple-style-span" style="color: #323e32; font-family: Verdana, 瀹嬩綋, sans-serif; font-size: 12px; line-height: 20px; "><h2 id="t_70b7bbf20100mhiv" class="titName SG_txta" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; color: #006b77; font-size: 18px; font-family: 寰蔣闆呴粦, 榛戜綋; font-weight: 300; display: inline; ">Tomcat7閰嶇疆</h2></span><span id="plnjhhr" class="Apple-style-span" style="color: #323e32; font-family: Verdana, 瀹嬩綋, sans-serif; font-size: 12px; line-height: 20px; "> </span><img src ="http://www.tkk7.com/liuwuping12064915/aggbug/351617.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuwuping12064915/" target="_blank">澶╃┖甯冭摑</a> 2011-06-02 17:54 <a href="http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351617.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>tomcat綆浠嬩箣web.xml璇﹁Вhttp://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351614.html澶╃┖甯冭摑澶╃┖甯冭摑Thu, 02 Jun 2011 09:40:00 GMThttp://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351614.htmlhttp://www.tkk7.com/liuwuping12064915/comments/351614.htmlhttp://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351614.html#Feedback0http://www.tkk7.com/liuwuping12064915/comments/commentRss/351614.htmlhttp://www.tkk7.com/liuwuping12064915/services/trackbacks/351614.html闃呰鍏ㄦ枃

]]>
Tomcat涓瓀eb.xml鏂囦歡鐨勮緇嗚鏄?/title><link>http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351611.html</link><dc:creator>澶╃┖甯冭摑</dc:creator><author>澶╃┖甯冭摑</author><pubDate>Thu, 02 Jun 2011 09:19:00 GMT</pubDate><guid>http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351611.html</guid><wfw:comment>http://www.tkk7.com/liuwuping12064915/comments/351611.html</wfw:comment><comments>http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351611.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/liuwuping12064915/comments/commentRss/351611.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/liuwuping12064915/services/trackbacks/351611.html</trackback:ping><description><![CDATA[<span id="3lfhdbj" class="Apple-style-span" style="font-family: verdana, sans-serif; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><span style="font-family: verdana, sans-serif; font-size: 14px; line-height: 21px; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; ">鍘熸枃杞嚜錛?/p></span></p></span><span id="tl3393d" class="Apple-style-span" style="font-family: verdana, sans-serif; "><a >http://blog.csdn.net/pathfinder163/archive/2009/09/02/4506817.aspx</a></span><span id="3b39zpx" class="Apple-style-span" style="font-family: verdana, sans-serif; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><span style="font-family: verdana, sans-serif; font-size: 14px; line-height: 21px; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><br /><?xml version="1.0" encoding="GB2312"?> <!-- <br />Web.xml渚濇瀹氳浜嗗涓嬪厓绱狅細 <br /><span style="font-size: 14pt; "><web-app> <br /></span><br /><span style="font-size: 14pt; "><display-name></display-name> 瀹氫箟浜哤EB搴旂敤鐨勫悕瀛?nbsp;<br /></span><br /><span style="font-size: 14pt; "><description></description> 澹版槑WEB搴旂敤鐨勬弿榪頒俊鎭?nbsp;<br /></span><br /><span style="font-size: 14pt; "><filter></filter> <br /></span><br /><span style="font-size: 14pt; "><filter-mapping></filter-mapping><br /> </span><br /><span style="font-size: 14pt; "><servlet></servlet> <br /></span><br /><span style="font-size: 14pt; "><servlet-mapping></servlet-mapping> <br /></span><br /><span style="font-size: 14pt; "><session-config></session-config> <br /></span><br /><span style="font-size: 14pt; "><welcome-file-list></welcome-file-list> <br /></span><br /><span style="font-size: 14pt; "><taglib></taglib> <br /></span><br /><span style="font-size: 14pt; "><resource-ref></resource-ref> <br /></span><br /><span style="font-size: 14pt; "><security-constraint></security-constraint> <br /></span><br /><span style="font-size: 14pt; "><login-config></login-config> <br /></span><br /><span style="font-size: 14pt; "></web-app> </span><br />鍦╳eb.xml涓厓绱犲畾涔夌殑鍏堝悗欏哄簭涓嶈兘棰犲掞紝鍚﹀垯Tomcat鏈嶅姟鍣ㄥ彲鑳戒細鎶涘嚭SAXParseException. <br />--> <br /><!DOCTYPE web-app PUBLIC "-//Sun Microsystems,Inc.//DTD Web Application 2.3//EN" "<a style="text-decoration: none; color: #336699; ">http://java.sun.com/dtd/web-app_2_3.dtd</a>"> <br /><web-app></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><display-name>Sample Application</display-name></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><description> <br />This is a Sample Application <br /></description></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />filter 閰嶇疆Servlet榪囨護鍣?nbsp;<br />filter-name 瀹氫箟榪囨護鍣ㄧ殑鍚嶅瓧銆傚綋鏈夊涓繃婊ゅ櫒鏃訛紝涓嶈兘鍚屽悕 <br />filter-class 鎸囧畾瀹炵幇榪欎竴榪囨護鐨勭被錛岃繖涓被璐熻矗鍏蜂綋鐨勮繃婊や簨鍔?nbsp;<br />--> <br /><filter> <br /><filter-name>SampleFilter</filter-name> <br /><filter-class>mypack.SampleFilter</filter-class> <br /></filter></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />filter-mapping 璁懼畾榪囨護鍣ㄨ礋璐h繃婊ょ殑URL <br />filter-name 榪囨護鍣ㄥ悕銆傝繖閲岀殑鍚嶅瓧涓瀹氳鍜宖ilter涓殑榪囨護鍣ㄥ悕鍖歸厤 <br />url-pattern 鎸囧畾榪囨護鍣ㄨ礋璐h繃婊ょ殑URL <br />--> <br /><filter-mapping> <br /><filter-name>SampleFilter</filter-name> <br /><url-pattern>*.jsp</url-pattern> <br /></filter-mapping></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />servlet 閰嶇疆Servlet. <br />servlet-name 瀹氫箟Servlet鐨勫悕瀛?nbsp;<br />servlet-class 鎸囧畾瀹炵幇榪欎釜servlet鐨勭被 <br />init-param 瀹氫箟Servlet鐨勫垵濮嬪寲鍙傛暟鍜屽弬鏁板鹼紝鍙湁澶氫釜init-param銆傚湪servlet綾諱腑閫氳繃getInitParamenter(String name)鏂規硶璁塊棶鍒濆鍖栧弬鏁?nbsp;<br />load-on-startup 鎸囧畾褰揥eb搴旂敤鍚姩鏃訛紝瑁呰澆Servlet鐨勬搴忋?nbsp;<br />褰撳間負姝f暟鎴栭浂鏃訛細Servlet瀹瑰櫒鍏堝姞杞芥暟鍊煎皬鐨剆ervlet錛屽啀渚濇鍔犺澆鍏朵粬鏁板煎ぇ鐨剆ervlet. <br />褰撳間負璐熸垨鏈畾涔夛細Servlet瀹瑰櫒灝嗗湪Web瀹㈡埛棣栨璁塊棶榪欎釜servlet鏃跺姞杞藉畠 <br />--> <br /><servlet> <br /><servlet-name>SampleServlet</servlet-name> <br /><servlet-class>mypack.SampleServlet</servlet-class> <br /><init-param> <br /><param-name>initParam1</param-name> <br /><param-value>2</param-value> <br /></init-param> <br /><load-on-startup>1</load-on-startup> <br /></servlet></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆servlet鏄犲皠錛堜笅闈唬鐮佷負SampleServlet鎸囧畾鐨勭浉瀵筓RL涓?/sample": <br />servlet-name 鎸囧畾servlet鐨勫悕瀛楋紝榪欓噷鐨勫悕瀛楀簲璇ュ拰<Servlet>鍏冪礌涓畾涔夌殑鍚嶅瓧鍖歸厤銆?nbsp;<br />url-pattern 鎸囧畾璁塊棶榪欎釜servlet鐨刄RL銆傚彧闇緇欏嚭鐩稿璺緞銆?nbsp;<br />--> <br /><servlet-mapping> <br /><servlet-name>SampleServlet</servlet-name> <br /><url-pattern>/sample</url-pattern> <br /></servlet-mapping></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!--閰嶇疆session session鐢ㄦ潵璁懼畾HttpSession鐨勭敓鍛藉懆鏈熴傚崟浣嶏紙縐掞級--> <br /><session-config> <br /><session-timeout>30</session-timeout> <br /></session-config></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!--閰嶇疆Wel0come0鏂囦歡娓呭崟--> <br /><welcome-file-list> <br /><welcome-file>login.jsp</welcome-file> <br /><welcome-file>index.htm</welcome-file> <br /></welcome-file-list></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆Tag Library <br />taglib-uri 璁懼畾Tag Library鐨勫敮涓鏍囪瘑絎︼紝鍦╓eb搴旂敤涓皢鏍規嵁榪欎竴鏍囪瘑絎︽潵寮曠敤Tag Library <br />taglib-location 鎸囧畾鍜孴ag Library瀵瑰簲鐨凾LD鏂囦歡鐨勪綅緗?nbsp;<br />--> <br /><taglib> <br /><taglib-uri>/mytaglib</taglib-uri> <br /><taglib-location>/WEB-INF/mytaglib.tld</taglib-location> <br /></taglib></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆璧勬簮寮曠敤 <br />description 瀵規墍寮曠敤鐨勮祫婧愮殑璇存槑 <br />res-ref-name 鎸囧畾鎵寮曠敤璧勬簮鐨凧NDI鍚嶅瓧 <br />res-type 鎸囧畾鎵寮曠敤璧勬簮鐨勭被鍚嶅瓧 <br />res-auth 鎸囧畾綆$悊鎵寮曠敤璧勬簮鐨凪anager,瀹冩湁涓や釜鍙夊鹼細 <br />Container錛氱敱瀹瑰櫒鏉ュ垱寤哄拰綆$悊resource <br />Application:鍚學EB搴旂敤鏉ュ垱寤哄拰綆$悊Resource <br />--> <br /><resource-ref> <br /><description>DB Connection</description> <br /><res-ref-name>jdbc/sampleDB</res-ref-name> <br /><res-type>javax.sql.DataSource</res-type> <br /><res-auth>Container</res-auth> <br /></resource-ref></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆瀹夊叏綰︽潫錛堜互涓嬩唬鐮佹寚瀹氬綋鐢ㄦ埛璁塊棶璇EB搴旂敤涓嬬殑鎵鏈夎祫婧愭椂錛屽繀欏誨叿澶噂uest瑙掕壊錛?nbsp;<br />web-resource-collection 澹版槑鍙椾繚鎶ょ殑WEB璧勬簮 <br />auth-constraint 澹版槑鍙互璁塊棶鍙椾繚鎶よ祫婧愮殑瑙掕壊錛屽彲浠ュ寘鍚涓?lt;role-name>瀛愬厓绱?/p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; ">web-resource-name 鏍囪瘑鍙椾繚鎶ょ殑WEB璧勬簮 <br />url-pattern 鎸囧畾鍙椾繚鎶ょ殑URL璺緞 <br />--> <br /><Security-constraint> <br /><web-resource-collection> <br /><web-resource-name>sample appliction</web-resource-name> <br /><url-pattern>/*</url-pattern> <br /></web-resource-collection> <br /><auth-constraint> <br /><role-name>guest</role-name> <br /></auth-constraint> <br /></Security-constraint></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><br /><!-- <br />閰嶇疆瀹夊叏楠岃瘉鐧誨綍鐣岄潰錛氭寚瀹氬綋WEB瀹㈡埛璁塊棶鍙椾繚鎶ょ殑WEB璧勬簮鏃訛紝緋葷粺寮瑰嚭鐨勭櫥褰曞璇濇鐨勭被鍨嬨?nbsp;<br />auth-method 鎸囧畾楠岃瘉鏂規硶錛屽畠鏈変笁涓彲閫夊鹼細BASIC(鍩烘湰楠岃瘉)銆丏IGEST(鎽樿楠岃瘉)銆丗ORM(琛ㄥ崟楠岃瘉) <br />realm-name 璁懼畾瀹夊叏鍩熺殑鍚嶇О <br />form-login-config 褰撻獙璇佹柟娉曚負FORM鏃訛紝閰嶇疆楠岃瘉緗戦〉鍜屽嚭閿欑綉欏?nbsp;<br />form-login-page 褰撻獙璇佹柟娉曚負FORM鏃訛紝璁懼畾楠岃瘉緗戦〉 <br />form-error-page 褰撻獙璇佹柟娉曚負FORM鏃訛紝璁懼畾鍑洪敊緗戦〉 <br />--> <br /><login-config> <br /><auth-method>FORM</auth-method> <br /><realm-name> <br />Tomcat Server Configuration form-Based Authentication Area <br /></realm-name> <br /><form-login-config> <br /><form-login-page>/login.jsp</form-login-page> <br /><form-error-page>/error.jsp</form-error-page> <br /></form-login-config> <br /></login-config></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!--閰嶇疆瀵瑰畨鍏ㄩ獙璇佽鑹茬殑寮曠敤--> <br /><security-role> <br /><description> <br />The role that is required to log into the sample application <br /></description> <br /><role-name>guest</role-name> <br /></security-role> <br /></p></span></p></span><span id="fv3vdtj" class="Apple-style-span" style="font-family: verdana, sans-serif; "></web-app></span><span id="nth9lz3" class="Apple-style-span" style="font-family: verdana, sans-serif; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><?xml version="1.0" encoding="GB2312"?> <!-- <br />Web.xml渚濇瀹氳浜嗗涓嬪厓绱狅細 <br /><web-app> <br /><display-name></display-name> 瀹氫箟浜哤EB搴旂敤鐨勫悕瀛?nbsp;<br /><description></description> 澹版槑WEB搴旂敤鐨勬弿榪頒俊鎭?nbsp;<br /><filter></filter> <br /><filter-mapping></filter-mapping> <br /><servlet></servlet> <br /><servlet-mapping></servlet-mapping> <br /><session-config></session-config> <br /><welcome-file-list></welcome-file-list> <br /><taglib></taglib> <br /><resource-ref></resource-ref> <br /><security-constraint></security-constraint> <br /><login-config></login-config> <br /></web-app> <br />鍦╳eb.xml涓厓绱犲畾涔夌殑鍏堝悗欏哄簭涓嶈兘棰犲掞紝鍚﹀垯Tomcat鏈嶅姟鍣ㄥ彲鑳戒細鎶涘嚭SAXParseException. <br />--> <br /><!DOCTYPE web-app PUBLIC "-//Sun Microsystems,Inc.//DTD Web Application 2.3//EN" "<a style="text-decoration: none; color: #336699; ">http://java.sun.com/dtd/web-app_2_3.dtd</a>"> <br /><web-app></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><display-name>Sample Application</display-name></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><description> <br />This is a Sample Application <br /></description></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />filter 閰嶇疆Servlet榪囨護鍣?nbsp;<br />filter-name 瀹氫箟榪囨護鍣ㄧ殑鍚嶅瓧銆傚綋鏈夊涓繃婊ゅ櫒鏃訛紝涓嶈兘鍚屽悕 <br />filter-class 鎸囧畾瀹炵幇榪欎竴榪囨護鐨勭被錛岃繖涓被璐熻矗鍏蜂綋鐨勮繃婊や簨鍔?nbsp;<br />--> <br /><filter> <br /><filter-name>SampleFilter</filter-name> <br /><filter-class>mypack.SampleFilter</filter-class> <br /></filter></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />filter-mapping 璁懼畾榪囨護鍣ㄨ礋璐h繃婊ょ殑URL <br />filter-name 榪囨護鍣ㄥ悕銆傝繖閲岀殑鍚嶅瓧涓瀹氳鍜宖ilter涓殑榪囨護鍣ㄥ悕鍖歸厤 <br />url-pattern 鎸囧畾榪囨護鍣ㄨ礋璐h繃婊ょ殑URL <br />--> <br /><filter-mapping> <br /><filter-name>SampleFilter</filter-name> <br /><url-pattern>*.jsp</url-pattern> <br /></filter-mapping></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />servlet 閰嶇疆Servlet. <br />servlet-name 瀹氫箟Servlet鐨勫悕瀛?nbsp;<br />servlet-class 鎸囧畾瀹炵幇榪欎釜servlet鐨勭被 <br />init-param 瀹氫箟Servlet鐨勫垵濮嬪寲鍙傛暟鍜屽弬鏁板鹼紝鍙湁澶氫釜init-param銆傚湪servlet綾諱腑閫氳繃getInitParamenter(String name)鏂規硶璁塊棶鍒濆鍖栧弬鏁?nbsp;<br />load-on-startup 鎸囧畾褰揥eb搴旂敤鍚姩鏃訛紝瑁呰澆Servlet鐨勬搴忋?nbsp;<br />褰撳間負姝f暟鎴栭浂鏃訛細Servlet瀹瑰櫒鍏堝姞杞芥暟鍊煎皬鐨剆ervlet錛屽啀渚濇鍔犺澆鍏朵粬鏁板煎ぇ鐨剆ervlet. <br />褰撳間負璐熸垨鏈畾涔夛細Servlet瀹瑰櫒灝嗗湪Web瀹㈡埛棣栨璁塊棶榪欎釜servlet鏃跺姞杞藉畠 <br />--> <br /><servlet> <br /><servlet-name>SampleServlet</servlet-name> <br /><servlet-class>mypack.SampleServlet</servlet-class> <br /><init-param> <br /><param-name>initParam1</param-name> <br /><param-value>2</param-value> <br /></init-param> <br /><load-on-startup>1</load-on-startup> <br /></servlet></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆servlet鏄犲皠錛堜笅闈唬鐮佷負SampleServlet鎸囧畾鐨勭浉瀵筓RL涓?/sample": <br />servlet-name 鎸囧畾servlet鐨勫悕瀛楋紝榪欓噷鐨勫悕瀛楀簲璇ュ拰<Servlet>鍏冪礌涓畾涔夌殑鍚嶅瓧鍖歸厤銆?nbsp;<br />url-pattern 鎸囧畾璁塊棶榪欎釜servlet鐨刄RL銆傚彧闇緇欏嚭鐩稿璺緞銆?nbsp;<br />--> <br /><servlet-mapping> <br /><servlet-name>SampleServlet</servlet-name> <br /><url-pattern>/sample</url-pattern> <br /></servlet-mapping></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!--閰嶇疆session session鐢ㄦ潵璁懼畾HttpSession鐨勭敓鍛藉懆鏈熴傚崟浣嶏紙縐掞級--> <br /><session-config> <br /><session-timeout>30</session-timeout> <br /></session-config></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!--閰嶇疆Wel0come0鏂囦歡娓呭崟--> <br /><welcome-file-list> <br /><welcome-file>login.jsp</welcome-file> <br /><welcome-file>index.htm</welcome-file> <br /></welcome-file-list></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆Tag Library <br />taglib-uri 璁懼畾Tag Library鐨勫敮涓鏍囪瘑絎︼紝鍦╓eb搴旂敤涓皢鏍規嵁榪欎竴鏍囪瘑絎︽潵寮曠敤Tag Library <br />taglib-location 鎸囧畾鍜孴ag Library瀵瑰簲鐨凾LD鏂囦歡鐨勪綅緗?nbsp;<br />--> <br /><taglib> <br /><taglib-uri>/mytaglib</taglib-uri> <br /><taglib-location>/WEB-INF/mytaglib.tld</taglib-location> <br /></taglib></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆璧勬簮寮曠敤 <br />description 瀵規墍寮曠敤鐨勮祫婧愮殑璇存槑 <br />res-ref-name 鎸囧畾鎵寮曠敤璧勬簮鐨凧NDI鍚嶅瓧 <br />res-type 鎸囧畾鎵寮曠敤璧勬簮鐨勭被鍚嶅瓧 <br />res-auth 鎸囧畾綆$悊鎵寮曠敤璧勬簮鐨凪anager,瀹冩湁涓や釜鍙夊鹼細 <br />Container錛氱敱瀹瑰櫒鏉ュ垱寤哄拰綆$悊resource <br />Application:鍚學EB搴旂敤鏉ュ垱寤哄拰綆$悊Resource <br />--> <br /><resource-ref> <br /><description>DB Connection</description> <br /><res-ref-name>jdbc/sampleDB</res-ref-name> <br /><res-type>javax.sql.DataSource</res-type> <br /><res-auth>Container</res-auth> <br /></resource-ref></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!-- <br />閰嶇疆瀹夊叏綰︽潫錛堜互涓嬩唬鐮佹寚瀹氬綋鐢ㄦ埛璁塊棶璇EB搴旂敤涓嬬殑鎵鏈夎祫婧愭椂錛屽繀欏誨叿澶噂uest瑙掕壊錛?nbsp;<br />web-resource-collection 澹版槑鍙椾繚鎶ょ殑WEB璧勬簮 <br />auth-constraint 澹版槑鍙互璁塊棶鍙椾繚鎶よ祫婧愮殑瑙掕壊錛屽彲浠ュ寘鍚涓?lt;role-name>瀛愬厓绱?/p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; ">web-resource-name 鏍囪瘑鍙椾繚鎶ょ殑WEB璧勬簮 <br />url-pattern 鎸囧畾鍙椾繚鎶ょ殑URL璺緞 <br />--> <br /><Security-constraint> <br /><web-resource-collection> <br /><web-resource-name>sample appliction</web-resource-name> <br /><url-pattern>/*</url-pattern> <br /></web-resource-collection> <br /><auth-constraint> <br /><role-name>guest</role-name> <br /></auth-constraint> <br /></Security-constraint></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><br /><!-- <br />閰嶇疆瀹夊叏楠岃瘉鐧誨綍鐣岄潰錛氭寚瀹氬綋WEB瀹㈡埛璁塊棶鍙椾繚鎶ょ殑WEB璧勬簮鏃訛紝緋葷粺寮瑰嚭鐨勭櫥褰曞璇濇鐨勭被鍨嬨?nbsp;<br />auth-method 鎸囧畾楠岃瘉鏂規硶錛屽畠鏈変笁涓彲閫夊鹼細BASIC(鍩烘湰楠岃瘉)銆丏IGEST(鎽樿楠岃瘉)銆丗ORM(琛ㄥ崟楠岃瘉) <br />realm-name 璁懼畾瀹夊叏鍩熺殑鍚嶇О <br />form-login-config 褰撻獙璇佹柟娉曚負FORM鏃訛紝閰嶇疆楠岃瘉緗戦〉鍜屽嚭閿欑綉欏?nbsp;<br />form-login-page 褰撻獙璇佹柟娉曚負FORM鏃訛紝璁懼畾楠岃瘉緗戦〉 <br />form-error-page 褰撻獙璇佹柟娉曚負FORM鏃訛紝璁懼畾鍑洪敊緗戦〉 <br />--> <br /><login-config> <br /><auth-method>FORM</auth-method> <br /><realm-name> <br />Tomcat Server Configuration form-Based Authentication Area <br /></realm-name> <br /><form-login-config> <br /><form-login-page>/login.jsp</form-login-page> <br /><form-error-page>/error.jsp</form-error-page> <br /></form-login-config> <br /></login-config></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><!--閰嶇疆瀵瑰畨鍏ㄩ獙璇佽鑹茬殑寮曠敤--> <br /><security-role> <br /><description> <br />The role that is required to log into the sample application <br /></description> <br /><role-name>guest</role-name> <br /></security-role> <br /></web-app></p></span><img src ="http://www.tkk7.com/liuwuping12064915/aggbug/351611.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/liuwuping12064915/" target="_blank">澶╃┖甯冭摑</a> 2011-06-02 17:19 <a href="http://www.tkk7.com/liuwuping12064915/archive/2011/06/02/351611.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://yyfass.com" target="_blank">亚洲一区免费观看</a>| <a href="http://79909d.com" target="_blank">亚洲色欲一区二区三区在线观看</a>| <a href="http://chuguo65.com" target="_blank">91亚洲国产成人精品下载</a>| <a href="http://simupiao.com" target="_blank">免费人成黄页在线观看日本</a>| <a href="http://semaopu.com" target="_blank">亚洲AV午夜成人影院老师机影院</a>| <a href="http://aabbcc567.com" target="_blank">免费观看在线禁片</a>| <a href="http://zf91.com" target="_blank">老汉色老汉首页a亚洲</a>| <a href="http://szq18888.com" target="_blank">xx视频在线永久免费观看</a>| <a href="http://kanzhelu23.com" target="_blank">亚洲永久中文字幕在线</a>| <a href="http://gwcyy.com" target="_blank">成人毛片免费观看</a>| <a href="http://by6174.com" target="_blank">亚洲a∨国产av综合av下载</a>| <a href="http://rimcn.com" target="_blank">国产人成免费视频</a>| <a href="http://cebeke.com" target="_blank">国产精品极品美女自在线观看免费</a>| <a href="http://ebhqd.com" target="_blank">国产偷窥女洗浴在线观看亚洲</a>| <a href="http://jgxsdst.com" target="_blank">在线观看黄片免费入口不卡</a>| <a href="http://zp0533.com" target="_blank">亚洲AV无码一区东京热久久</a>| <a href="http://wbkk88.com" target="_blank">222www在线观看免费</a>| <a href="http://tjbdyx.com" target="_blank">亚洲色成人WWW永久在线观看</a>| <a href="http://ztsf6688.com" target="_blank">日本一区免费电影</a>| <a href="http://mtsp2.com" target="_blank">精品国产污污免费网站入口</a>| <a href="http://ynkaishan.com" target="_blank">久久精品国产精品亚洲艾</a>| <a href="http://2xpp.com" target="_blank">青娱乐免费视频在线观看</a>| <a href="http://njchxf.com" target="_blank">亚洲AV无码专区在线电影成人</a>| <a href="http://5ggy.com" target="_blank">亚洲国产精品一区二区九九 </a>| <a href="http://dodxs.com" target="_blank">亚洲精品在线电影</a>| <a href="http://664403.com" target="_blank">国产精品久久久久久久久久免费</a>| <a href="http://juytv.com" target="_blank">久久精品国产亚洲AV电影网 </a>| <a href="http://maomi90.com" target="_blank">久久精品国产亚洲AV无码娇色</a>| <a href="http://8mav958.com" target="_blank">免费专区丝袜脚调教视频</a>| <a href="http://77663499.com" target="_blank">亚洲成AV人影片在线观看</a>| <a href="http://hgbookvip.com" target="_blank">亚洲国产成人五月综合网 </a>| <a href="http://wanguoshan.com" target="_blank">免费一级毛片不卡不收费</a>| <a href="http://cdlsy.com" target="_blank">免费无码黄网站在线看</a>| <a href="http://liulaogendawutai.com" target="_blank">亚洲理论片中文字幕电影</a>| <a href="http://8xxon8.com" target="_blank">免费a级毛片无码a∨性按摩</a>| <a href="http://laochedao.com" target="_blank">免费一区二区三区</a>| <a href="http://w6446.com" target="_blank">亚洲AV一区二区三区四区</a>| <a href="http://sczxzt.com" target="_blank">亚洲AV无码乱码国产麻豆</a>| <a href="http://beijinzhongliuyiyuan.com" target="_blank">国产麻豆视频免费观看</a>| <a href="http://sczssc.com" target="_blank">国产区在线免费观看</a>| <a href="http://8mav1007.com" target="_blank">亚洲xxxx视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>