Posts Tagged ‘org.apache.jasper.JasperException’

org.apache.jasper.JasperException: dataGrid According to TLD or attribute directive in tag file, attribute items does not accept any expressions

Tuesday, November 24th, 2009

I was searching for a free library to present data in html table. I am using Netbeans 6.5.1. I found out a nice example descriping the way to present data from the database table to the html table. Please check out
http://www.roseindia.net/jsp/data-grid.shtml.

Problem:

I got the following error when I tried to launch the example:
org.apache.jasper.JasperException: /data_grid.jsp(119,8) PWC6236: According to TLD or attribute directive in tag file, attribute items does not accept any expressions

The error occured at <ui:dataGrid items=”${employees}” var=”employee” name=”datagrid1″ cellPadding=”0″. I spent a few hours before I found out the solution at .

SOLUTION:
Netbeans uses servlet 2.5. in web.xml. Modify web.xml from servlet 2.5. to 2.2.
Modify:
<web-app version=”2.5″ xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd”>
to:
<web-app version=”2.2″ xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/j2ee/dtds/web-app_2_2.dtd”