Here is my config in web.xml
file
<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>
Here is the config in 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>
It keeps saying this: Can not find the tag library descriptor for "http://struts.apache.org/tags-tiles"
when I add taglib into layout:
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
And when I run on server:
SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
Did I miss something here?
Just go for New->XML file and name the file as yourname. tld thats all !
To solve this you must remove the wrong JAR file, download jstl-1.2. jar and drop it in its entirety in /WEB-INF/lib. That's all. You do not need to extract it nor to fiddle in the project's Build Path.
Thanks to Kenny Lee I found out the solution for this one after weeks :(( You’ll need to configure your eclipse project settings by:
For Eclipse 3.6 Click Here for more information
Sometimes after configuration you have to refresh the project or use mvn clean
and mvn install
and it will do the tricks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With