webwork ioc的web.xml配置

webwork ioc的web.xml配置

看下面的配置,按文档配的话应该是Session的listioner在Application listener的前面,但运行时抛错说什么对象类型不对,现在如下把顺序换了下,运行正常了

<filter>
    <filter-name>container</filter-name>
    <filter-class>com.opensymphony.webwork.lifecycle.RequestLifecycleFilter</filter-class>
    </filter>

   <filter-mapping>
   <filter-name>container</filter-name>
   <url-pattern>*.do</url-pattern>
   </filter-mapping>


 <listener>
     <listener-class>com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener</listener-class>
 </listener>
 
 <listener>
     <listener-class>com.opensymphony.webwork.lifecycle.SessionLifecycleListener</listener-class>
 </listener>
 


你可能感兴趣的:(webwork ioc的web.xml配置)