Mohasin Ali
Mohasin Ali

Reputation: 4015

Struts tags-tiles cannot be resolved in either web.xml or the jar files

I am using Struts2 in Eclipse IDE and JBoss5 server and maven for build. I was trying to use tiles in a simple login application. But I am not able to include the taglib. I have imported all the necessary jars dependencies in pom.xml file. Following is the list of jars which I have included in maven pom.xml file:

and also I included and tried different possible combinations of

  1. tiles-api-2.0.3.jar
  2. tiles-core-2.0.3.jar
  3. tiles-jsp-2.0.3.jar
  4. struts-tiles.jar

and still it is not working, the Errors are :

-The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
-ServletException including path '/layout.jsp'. 
-ServletException including path '/layout.jsp'. 

when I am trying to import tiles taglib on a JSP page it says

URI: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application.

I tried Google also. Got some solutions but they didn't work for me.

Upvotes: 1

Views: 5637

Answers (2)

mck
mck

Reputation: 1150

You want to integrate Struts2 with Tiles3.

See https://cwiki.apache.org/confluence/display/WW/Tiles+3+Plugin

and

How to integrate Struts 2 with Tiles 3

Upvotes: 1

Roman C
Roman C

Reputation: 1

You should use servlet API at least version 2.4. In the tiles you could use taglib definition

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

Don't mess up Struts 1 taglib and tiles jars with Tiles artifacts.

Upvotes: 2

Related Questions