struts2 web.xml 配置org.apache.struts2.dispatcher.ng.listener.StrutsListener
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了struts2 web.xml 配置org.apache.struts2.dispatcher.ng.listener.StrutsListener相关的知识,希望对你有一定的参考价值。
struts2在web.xml里配置<listener>
<listener-class>org.apache.struts2.dispatcher.ng.listener.StrutsListener</listener-class>
</listener>有什么用,找了半天也找不到,谢谢了
<filter>
<filter-name>struts-prepare</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
<!-- <init-param>
<param-name>config</param-name>
<param-value>struts-default.xml,struts-plugin.xml,common/struts.xml</param-value>
</init-param> -->
</filter>
<filter>
<filter-name>struts-execute</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-prepare</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts-execute</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.apache.struts2.dispatcher.ng.listener.StrutsListener</listener-class>
</listener>
<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- struts2 group end -->
以上是关于struts2 web.xml 配置org.apache.struts2.dispatcher.ng.listener.StrutsListener的主要内容,如果未能解决你的问题,请参考以下文章