隨筆-9  評(píng)論-168  文章-266  trackbacks-0
          The load-on-startup element indicates that this servlet should be loaded (instantiated and have its init() called) on the startup of the web application. The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it choosesIf the value is a positive integer or 0, the container must load and initialize the servlet as the application is deployed. The container must guarantee that servlets marked with lower integers are loaded before servlets marked with higher integers. The container may choose the order of loading of servlets with the same load-on-start-up value.

          這個(gè) load-on-startup 元素 在 web 應(yīng)用啟動(dòng)的時(shí)候指定了servlet被加載的順序,它的值必須是一個(gè)整數(shù)。如果它的值是一個(gè)負(fù)整數(shù)或是這個(gè)元素不存在,那么容器會(huì)在該servlet被調(diào)用的時(shí)候,加載這個(gè)servlet 。如果值是正整數(shù)或零,容器在配置的時(shí)候就加載并初始化這個(gè)servlet,容器必須保證值小的先被加載。如果值相等,容器可以自動(dòng)選擇先加載誰。
          posted on 2008-03-11 09:10 紫蝶∏飛揚(yáng)↗ 閱讀(444) 評(píng)論(0)  編輯  收藏 所屬分類: JSF
          主站蜘蛛池模板: 淮南市| 白沙| 西盟| 泰来县| 延长县| 山东省| 阳原县| 康保县| 明溪县| 宜君县| 青川县| 乌兰浩特市| 武鸣县| 闵行区| 土默特右旗| 吴堡县| 麻栗坡县| 烟台市| 香港| 沭阳县| 育儿| 凭祥市| 吉安县| 万源市| 寿阳县| 广昌县| 布拖县| 乌兰县| 望都县| 泰顺县| 镇江市| 将乐县| 泰来县| 晋中市| 广灵县| 南皮县| 尖扎县| 江油市| 岑溪市| 五常市| 高尔夫|