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
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 eitherweb.xml
or the jar files deployed with this application.
I tried Google also. Got some solutions but they didn't work for me.
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.
You want to integrate Struts2 with Tiles3.
See https://cwiki.apache.org/confluence/display/WW/Tiles+3+Plugin
and
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.