web.xml~204~
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
  3. <web-app>
  4.   <servlet>
  5.     <servlet-name>action</servlet-name>
  6.     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
  7.     <init-param>
  8.       <param-name>debug</param-name>
  9.       <param-value>2</param-value>
  10.     </init-param>
  11.     <init-param>
  12.       <param-name>config</param-name>
  13.       <param-value>/WEB-INF/struts-config.xml</param-value>
  14.     </init-param>
  15.     <init-param>
  16.       <param-name>mapping</param-name>
  17.       <param-value>strutsds.EmployeesActionMapping</param-value>
  18.     </init-param>
  19.     <init-param>
  20.       <param-name>application</param-name>
  21.       <param-value>strutsds.ApplicationResources</param-value>
  22.     </init-param>
  23.     <load-on-startup>2</load-on-startup>
  24.   </servlet>
  25.   <servlet>
  26.     <servlet-name>debugjsp</servlet-name>
  27.     <description>Added to compile JSPs with debug info</description>
  28.     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  29.     <init-param>
  30.       <param-name>classdebuginfo</param-name>
  31.       <param-value>true</param-value>
  32.     </init-param>
  33.     <load-on-startup>3</load-on-startup>
  34.   </servlet>
  35.   <servlet-mapping>
  36.     <servlet-name>action</servlet-name>
  37.     <url-pattern>*.do</url-pattern>
  38.   </servlet-mapping>
  39.   <servlet-mapping>
  40.     <servlet-name>debugjsp</servlet-name>
  41.     <url-pattern>*.jsp</url-pattern>
  42.   </servlet-mapping>
  43.   <welcome-file-list>
  44.     <welcome-file>login.jsp</welcome-file>
  45.   </welcome-file-list>
  46.   <taglib>
  47.     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
  48.     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  49.   </taglib>
  50.   <taglib>
  51.     <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
  52.     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  53.   </taglib>
  54.   <taglib>
  55.     <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
  56.     <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  57.   </taglib>
  58.   <taglib>
  59.     <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
  60.     <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
  61.   </taglib>
  62. </web-app>