apache - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application -
i using jdk 1.7, apache tomcat 7.0.23 , have placed jstl core library(1.2) , standard jar in web_inf lib folder not giving me warning when try run code
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <!-- create bean instance--> <jsp:usebean id="listdomain" class="bean.populatemultidomain" scope="session"></jsp:usebean> <jsp:setproperty property="*" name="listdomain"/> <c:foreach var="item" items="${listdomain.status}"> <option> <c:out value="${item}" /> </option> </c:foreach>
it gives me following error:
org.apache.jasper.jasperexception: absolute uri: http://java.sun.com/jsp/jstl/core cannot resolved in either web.xml or jar files deployed application org.apache.jasper.compiler.defaulterrorhandler.jsperror(defaulterrorhandler.java:56) org.apache.jasper.compiler.errordispatcher.dispatch(errordispatcher.java:410) org.apache.jasper.compiler.errordispatcher.jsperror(errordispatcher.java:117) org.apache.jasper.compiler.taglibraryinfoimpl.generatetldlocation(taglibraryinfoimpl.java:311) org.apache.jasper.compiler.taglibraryinfoimpl.<init>(taglibraryinfoimpl.java:152) org.apache.jasper.compiler.parser.parsetaglibdirective(parser.java:410) org.apache.jasper.compiler.parser.parsedirective(parser.java:475) org.apache.jasper.compiler.parser.parseelements(parser.java:1425) org.apache.jasper.compiler.parser.parse(parser.java:138) org.apache.jasper.compiler.parsercontroller.doparse(parsercontroller.java:242) org.apache.jasper.compiler.parsercontroller.parse(parsercontroller.java:102) org.apache.jasper.compiler.compiler.generatejava(compiler.java:198) org.apache.jasper.compiler.compiler.compile(compiler.java:373) org.apache.jasper.compiler.compiler.compile(compiler.java:353) org.apache.jasper.compiler.compiler.compile(compiler.java:340) org.apache.jasper.jspcompilationcontext.compile(jspcompilationcontext.java:646) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:357) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:390) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:334) javax.servlet.http.httpservlet.service(httpservlet.java:722)
can suggest me mistake making?
remove standard.jar
. it's apparently of old jstl 1.0 version when tld uris without /jsp
path. jstl 1.2 available here don't need standard.jar
@ all. jstl-1.2.jar
in /web-inf/lib
sufficient.
Comments
Post a Comment