[Solved] According to TLD or attribute directive in tag file, attribute items does not accept any expressions.

Reason for this error is version incompatibility between JSP, Servlet and JSTL.Matching versions are listed below.
- JSP 1.2 , Servlet 2.3 , JSTL 1.0
- JSP 2.0 , Servlet 2.4 , JSTL 1.1
Check the web.xml to see whether it uses the Servlet 2.3 DTD or Servlet 2.4 Schema.
If it uses Servlet 2.3 DTD, it will have the following text.
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
For Servlet 2.4 Schema, it will look like below.
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
</web-app>
When you change the versions correctly, no such errors will pop-up. Hope this will help you.
COMMENTS