⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web.xml

📁 java UML 状态图 序列图 软件设计
💻 XML
字号:
<?xml version="1.0"?><!-- * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * UPDATED: Marty Hall changed to use .faces suffix, *          faces-config.xml filename, and servlets 2.4.--><web-app 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"    version="2.4">        <!-- Extensions Filter -->    <filter>	<filter-name>MyFacesExtensionsFilter</filter-name>	<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>        <init-param>            <param-name>maxFileSize</param-name>            <param-value>20m</param-value>            <description>Set the size limit for uploaded files.                Format: 10 - 10 bytes                        10k - 10 KB                        10m - 10 MB                        1g - 1 GB            </description>        </init-param>    </filter>        <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->    <filter-mapping>        <filter-name>MyFacesExtensionsFilter</filter-name>        <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->        <servlet-name>Faces Servlet</servlet-name>    </filter-mapping>    <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->    <filter-mapping>        <filter-name>MyFacesExtensionsFilter</filter-name>        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>    </filter-mapping>    <context-param>        <param-name>javax.faces.CONFIG_FILES</param-name>        <param-value>            /WEB-INF/faces-config.xml        </param-value>        <description>            Comma separated list of URIs of (additional) faces config files.            (e.g. /WEB-INF/my-config.xml)            See JSF 1.0 PRD2, 10.3.2        </description>    </context-param>    <context-param>        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>        <param-value>client</param-value>        <description>            State saving method: "client" or "server" (= default)            See JSF Specification 2.5.2        </description>    </context-param>    <context-param>        <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>        <param-value>true</param-value>        <description>            This parameter tells MyFaces if javascript code should be allowed in the            rendered HTML output.            If javascript is allowed, command_link anchors will have javascript code            that submits the corresponding form.            If javascript is not allowed, the state saving info and nested parameters            will be added as url parameters.            Default: "true"        </description>    </context-param>    <context-param>        <param-name>org.apache.myfaces.PRETTY_HTML</param-name>        <param-value>true</param-value>        <description>            If true, rendered HTML code will be formatted, so that it is "human readable".            i.e. additional line separators and whitespace will be written, that do not            influence the HTML code.            Default: "true"        </description>    </context-param>    <context-param>        <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>        <param-value>false</param-value>    </context-param>    <context-param>        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>        <param-value>true</param-value>        <description>            If true, a javascript function will be rendered that is able to restore the            former vertical scroll on every request. Convenient feature if you have pages            with long lists and you do not want the browser page to always jump to the top            if you trigger a link or button action that stays on the same page.            Default: "false"        </description>    </context-param>    <!-- Listener, that does all the startup work (configuration, init). -->    <listener>        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>    </listener>    <!-- Faces Servlet         Marty Hall: changed .jsf back to standard of .faces -->    <servlet>        <servlet-name>Faces Servlet</servlet-name>        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>        <load-on-startup>1</load-on-startup>    </servlet>    <servlet-mapping>        <servlet-name>Faces Servlet</servlet-name>        <url-pattern>*.faces</url-pattern>    </servlet-mapping>    <!-- Welcome files -->    <welcome-file-list>        <welcome-file>index.jsp</welcome-file>    </welcome-file-list></web-app>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -