这是我在web.xml
文件中的配置
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
这是里面的配置pom.xml
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>2.2.2</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
它一直在说:Can not find the tag library descriptor for "http://struts.apache.org/tags-tiles"
当我将 taglib 添加到布局中时:
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
当我在服务器上运行时:
SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
我在这里错过了什么吗?