1. Use the following code in the jsp page to add support for jstl
<%@ taglib prefix="c" uri="/jsp/jstl/core" %>
2. If the jsp page reports the following exception
: : .addCustomerInfo_jsp
(:177)
(:369)
(:390)
(:334)
(:722)
.(:198)
(:76)
(:96)
(:76)
root cause
: .addCustomerInfo_jsp
$(:200)
(Native Method)
(:188)
(:132)
(:63)
(:172)
(:369)
(:390)
(:334)
(:722)
.(:198)
(:76)
(:96)
(:76)
Then it is very likely that your Tomcat's lib directory does not have jstl jar package, so tomcat cannot parse jstl
Solution: Add jstl's jar package to the lib directory of tomcat.
jstljar package download address:Download jstl
Copy the codeThe code is as follows:
<%@ taglib prefix="c" uri="/jsp/jstl/core" %>
2. If the jsp page reports the following exception
: : .addCustomerInfo_jsp
(:177)
(:369)
(:390)
(:334)
(:722)
.(:198)
(:76)
(:96)
(:76)
root cause
: .addCustomerInfo_jsp
$(:200)
(Native Method)
(:188)
(:132)
(:63)
(:172)
(:369)
(:390)
(:334)
(:722)
.(:198)
(:76)
(:96)
(:76)
Then it is very likely that your Tomcat's lib directory does not have jstl jar package, so tomcat cannot parse jstl
Solution: Add jstl's jar package to the lib directory of tomcat.
jstljar package download address:Download jstl