tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Rubdi" <>
Subject Re: Bug
Date Sun, 29 Apr 2007 17:33:18 GMT
Hi Venu,

I was able to solve this error, please see the explanation below.

I too got this error:

org.apache.jasper.JasperException: /p/datagrid/index.jsp(475,0)
According to TLD or attribute directive in tag file, attribute items
does not accept any expressions

when I tried example1.jsp from the datagrid-examples.war that is
contained within:
jakarta-taglibs-sandbox-datagrid-20060829 which was obtained from here:
I suppose the above is the ~latest~ available version of DataGrid.

I was able to solve this error by using a Servlet 2.2 DTD in my web.xml.
I guess DataGrid is not compatible with Servlet 2.4.

Following is the web.xml structure that got it to work:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"



In order to try the above, please back up your current web.xml and
create a new web.xml exactly as shown above, provided that you placed
the tld file in this location: Project

example1.jsp is something like this:
<%@ taglib uri="" prefix="ui" %>
<ui:dataGrid items="${employees}" var="employee" name="datagrid1"
cellPadding="1" cellSpacing="0">


I was able to see the DataGrid after making changes to the web.xml as
indicated above.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message