The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this ap

So I copied jstl.jar and standard.jar into /WEB-INF/lib directory on the server. The error went away but I got another exception i.e. ClassNotFoundException: com.mysql.jdbc.Driver cannot be resolved, since i was using a SELECT query in my JSP page.

So i copied the mysql-connector-java-3.1.13-bin.jar to the same WEB-INF/lib directory. And voila , the error had gone and I got the expected results displayed on the browser. Point to note, I didnt add any entries into my web.xml. I assume that instead of copying over the files, you can just amend web.xml to point those external file path.

I also came to know that this error :" org.apache.jasper.JasperException: /showEmployees.jsp(22,0) According to TLD or attribute directive in tag file, attribute items does not accept any expressions" occurs, when I changed "http://java.sun.com/ jsp/jstl/core" to "http://java.sun.com/jstl/core"  

你可能感兴趣的:(jar,exception,application,jsp,file,query)