web.xml之配置Struts

servlet-class:可以是org.apache.struts.action.ActionServlet或继承该类
	<servlet>
		<servlet-name>action</servlet-name>
		<servlet-class>
			com.weboa.util.web.EbusinessActionServlet
		</servlet-class>
		<init-param>
			<param-name>config</param-name>
			<param-value>/WEB-INF/struts-config.xml</param-value>
		</init-param>
		<!-- module configurations -->
		<init-param>
			<param-name>debug</param-name>
			<param-value>2</param-value>
		</init-param>
		<init-param>
			<param-name>detail</param-name>
			<param-value>2</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.htm</url-pattern>
	</servlet-mapping>
<!-- Struts Tag Library Descriptors -->      

     <taglib>      

        <taglib-uri>struts-bean</taglib-uri>      

        <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>      

     </taglib>      

     <taglib>      

         <taglib-uri>struts-html</taglib-uri>      

       <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>      

     </taglib>      

    <taglib>      

    <taglib-uri>struts-nested</taglib-uri>      

     <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>      

     </taglib>      

   <taglib>      

        <taglib-uri>struts-logic</taglib-uri>      

         <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>      

    </taglib>     
     <taglib>      

        <taglib-uri>struts-tiles</taglib-uri>      

        <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>      

    </taglib>      


 

你可能感兴趣的:(struts,Module,library)