I am using Struts-1
. I have developed a struts-based web application. I am using struts tags in my JSP pages supplied in struts-taglib.jar
by inserting the following lines in the JSP file:
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
Now the application is working fine when I run it on my localsystem but when I deploy it on a server, it shows the following exception:
org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-html cannot be resolved in either web.xml or the jar files deployed with this application
From the above exception, it seems that the application hasn t found the struts-taglib.jar
file.
But I have put the struts-taglib.jar
in /WEB-INF/lib
directory. Then where is the problem?
Note: You can also look at Java - Problem in deploying Web Application for more information