So I copied jstl.jar and standard.jar into <application folder>/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"
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"
本文介绍了如何通过在WEB-INF/lib目录下添加jstl.jar、standard.jar和mysql-connector-java-3.1.13-bin.jar文件来解决JSP页面出现的多个异常问题,包括ClassNotFoundException:com.mysql.jdbc.Driver无法解析等。

被折叠的 条评论
为什么被折叠?



