最近整了一下老項目的,升級了一下Servlet至2.4了,結果導致如下錯誤:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
具體原因請參考:http://blog.csdn.net/yanw1986/archive/2009/10/08/4641813.aspx,解決辦法是修改如下:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
此版本無論在2.4或2.3版本中均有效。