web.xml~26~
上传用户: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.     <load-on-startup>2</load-on-startup>
  16.   </servlet>
  17.   <servlet>
  18.     <servlet-name>debugjsp</servlet-name>
  19.     <description>Added to compile JSPs with debug info</description>
  20.     <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  21.     <init-param>
  22.       <param-name>classdebuginfo</param-name>
  23.       <param-value>true</param-value>
  24.     </init-param>
  25.     <load-on-startup>3</load-on-startup>
  26.   </servlet>
  27.   <servlet-mapping>
  28.     <servlet-name>action</servlet-name>
  29.     <url-pattern>*.do</url-pattern>
  30.   </servlet-mapping>
  31.   <servlet-mapping>
  32.     <servlet-name>debugjsp</servlet-name>
  33.     <url-pattern>*.jsp</url-pattern>
  34.   </servlet-mapping>
  35.   <taglib>
  36.     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
  37.     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  38.   </taglib>
  39.   <taglib>
  40.     <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
  41.     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  42.   </taglib>
  43.   <taglib>
  44.     <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
  45.     <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  46.   </taglib>
  47.   <taglib>
  48.     <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
  49.     <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
  50.   </taglib>
  51. </web-app>