本文介绍了解决JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions异常的方法。通过调整web.xml文件中的版本配置或更换JSTL core库为RT库,可以有效解决此问题。
应用部署运行的时候出现JSP异常, 发生在使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any expressions, 可能是因为使用了JSP2.0版本, 同时又没有使用JSTL core库的备用版本(RT库), 以下有两种处理方法: