Java:Struts ÏîÄ¿ÖÐweb.xmlÎļþÅäÖÃ
web.xmlÎļþ¶ÔÓÚÅäÖÃÈκÎJava WebÓ¦Óö¼±ØÐèµÄ¡£
£¨1£©ÅäÖÃStrutsµÄActionServlet
<servlet><!--ÔªËØÀ´ÉùÃ÷ActionServlet-->
<servlet-name><!--ÔªËØ£ºÓÃÀ´¶¨ÒåServletµÄÃû³Æ-->
<servlet-class><!--ÔªËØ:ÓÃÀ´Ö¸¶¨ServletµÄÍêÕûÀàÃû-->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
</servlet>
»¹ÒªÅäÖÃ<servlet-mapping>ÔªËØ,ËüÓÃÀ´Ö¸¶¨ActionServlet¿ÉÒÔ´¦ÀíÄÄЩURL
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
×¢Òâ:(1)<servlet-mapping>ºÍ<servlet>ÖеÄ<servlet-name>?</servlet-name>µÄÒªÌîдһÖ£¬Ëü¾ÍÊÇÒ»¸ùÏߣ¬°Ñ<servlet-mapping>ºÍ<servlet>Áª½ÓÔÚÒ»ÆðµÄ¡£
(2)ÔÚStruts¿ò¼ÜÖÐÖ»ÄÜÓÐÒ»¸öServlet,ÒòΪServletÖ§³Ö¶àÏ̡߳£¶ø<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>ÖеÄActionServletÊÇÔÚStruts.jar°üÖеÄ.ÔÚµ¼ÈëStruts°üʱ»áµ¼Èë¡£
(3)ÔÚÏÔʾ²ãÒÔ*.doÌá½»µÄ£¬¶¼»á¹ý¸öServlet¡£*.do¿ÉÒÔ¸Äд³ÉÄãÏëÒªµÄÈκÎÐÎʽ¡£ÀýÈç:/do/*
À©Õ¹ (1)ÎÒÃÇ¿ÉÒԼ̳Рorg.apache.struts.action.ActionServlet µÃµ½ÎÒÃÇ¿ÉÒÔÀ©ÔʵÄ×ÓÀ࣬ÔÚ×ÓÀàÖÐÖØдһ¸ö·½·¨init()¡£Õâʱ<servlet-class>?</servlet-class>Öеģ¿ÊÇÎÒÃÇн¨µÄÀàµÄ·¾¶£¬Í¬ÑùÖ»ÄÜ´æÔÚÒ»¸ö¡£
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
TomcatÖÐweb.xmlÎļþµÄÏêϸ˵Ã÷
<?xml version="1.0" encoding="GB2312"?>
<!--
Web.xmlÒÀ´Î¶¨ÒéÁËÈçÏÂÔªËØ: <web-app> <display-name></display-name> ¶¨ÒåÁËWEBÓ¦ÓõÄÃû×Ö
<description></description>
Ïà¹ØÎĵµ£º
×î½ü¿´µ½Ò»¸öÓÐÒâ˼µÄÊ÷Ðνṹ£¬ÎªÃ¿¸ö½ÚµãÌí¼ÓÁËlftºÍrgtÁ½¸öÊôÐÔ¡£ÕâÑù²éÕҸýڵãµÄ×ӽڵ㡢²éÕҸýڵãËùÓи¸½Úµã£¬¾Í²»ÓÃÈ¥µÝ¹é²éѯ£¬Ö»ÐèÒªÓÃbetween¡¢andÓï¾ä¾Í¿ÉÒÔʵÏÖ¡£ÏÂÃæÒÔ´´½¨Ò»¸öÀ¸Ä¿Ê÷ΪÀý£¬ÒÔÏÂÊÇÎÒµÄÀí½â¡£
¡¡¡¡Ò»°ãÀ´½²£¬ÎÒÃÇ´´½¨À¸Ä¿Ê÷µÄʱºò£¬´ó¶àÖ»ÐèÒªÒ»¸öÍâ¼üparentidÀ´Çø·Ö¸Ã½ÚµãÊôÓÚÄĸö¸¸½Úµã¡£Êý ......
import java.io.File;
import java.util.concurrent.CountDownLatch;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.db.LockDetectMode;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlContainerConfig;
im ......
½ñÌìÊÇÉϿεĵÚÒ»Ì죬ûÏëµ½µÚÒ»Ìì¾Í½²ÁËÄÇô¶àµÄ¶«Î÷£¬¿´ÁË¿´ÀÏʦµÄPPT£¬·¢ÏÖ¶«Î÷ËäÈ»¶à£¬µ«ÊǶ¼²»ÄÑÀí½â£¬»¹ÊDZȽÏÈÝÒ׵ġ£¹þ¹þ£¬µÃÒæÓÚÔÚ´«ÖÇ»ù´¡°àµÄ´¸Á¶£¬Ó¢Ã÷µÄ¾ö¶¨¾ÍÊÇ´ÓͷѧÆð¡£
¸Õ¹ýÍê´º½ÚÀÏ·½µÄ»°»¹ÊÇ˵µÄ²»ÊǺÜÁ÷Àû°¡£¨Òª¼ÓÇ¿ÆÕͨ»°Á·Ï°à¸ ......
1£®Ê²Ã´ÊÇXML£¿
XML ¿ª·¢ÕßÃÇ»á¸æËßÄ㣬ÊÂʵÉÏXML²¢²»ÊÇÒ»ÖÖÓïÑÔ£¬¶øÊÇÒ»ÖÖÓÃÀ´¶¨ÒåÆäËüÓïÑÔµÄϵͳ¡£¿ÉÄÜÄãÒѾÌý¹ý£¬»òÐíÉõÖÁ×Ô¼º³¢ÊÔ¹ýһЩÕâÑùµÄÓïÑÔ??±ÈÈç΢ÈíΪÍÆ£¨push£©¼¼ÊõËùÍƳöµÄƵµÀ¶¨Òå¸ñʽ£¨Channel Definition Format£©¡£
W3CÊÇ»¥Á¬ÍøÉÏһЩ¹«Óñê×¼µÄ¿ª·¢Õߣ¬ËûÍƳöÁËһϵÁкÍXMLÏà¹ØµÄ±ê× ......
ÄãÖªµÀXMLÎļþ°É£¿£¨²»ÖªµÀµÄGOOGLEÈ¥£¡£©ÄÇÄãÌý˵¹ýÔÚXMLÀïÊéдSQLÓï¾äÂ𣿻»¾ä»°Ëµ£¬°ÑÄãµÄÏîÄ¿ÀïËùÓÐSQLÓï¾ä´æ´¢ÔÚXMLÎļþÀÄãÌý˵¹ýÂð£¿Äã×ö¹ýÂð£¿
ÎÒÍ·´ÎÌý˵ÊÇС°¬¸æËßÎҵģ¬ÎҸҿ϶¨ËûÊǸöÕâ·½ÃæµÄ¸ßÊÖ£¬ºÇºÇ£¨ÔÞÒ»¸ö£¬µ½´ËΪֹ£¡£©
ÄǸøÄãչʾһÏ£¬ÔÚXMLÀïÊéдSQLÓï¾ä°É
<commands>
<comman ......