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>
 











goldrain 2005-07-24 21:07 发表评论

你可能感兴趣的:(Web,xml,IOC,Webwork)