I'm trying to create DataGrid in JSP.
My Code :
<body>
<%
UserDAO obj = new UserModel();
List<UserDTO> userlist = new ArrayList<UserDTO>();
UserDTO sdto = null;
userlist = obj.getAllUsers();
if (userlist == null) {
%>
<center>
<table>
<tr>
<td>NULL</td>
</tr>
</table>
</center>
<%
} else {
int fromIndex, toIndex;
int length = userlist.size();
fromIndex = (int) DataGridParameters.getDataGridPageIndex(
request, "datagrid1");
if ((toIndex = fromIndex + 5) >= userlist.size())
toIndex = userlist.size();
request.setAttribute("userlist", userlist.subList(fromIndex,
toIndex));
pageContext.setAttribute("count", length);
%>
<table>
<tr>
<td>User List</td>
</tr>
</table>
<br />
<br />
<%
Iterator it = userlist.iterator();
while (it.hasNext()) {
UserDTO dto = (UserDTO) it.next();
out.println(dto.getEmailId());
}
%>
<ui:dataGrid items="${userlist}" var="user" name="datagrid1"
cellPadding="0" cellSpacing="0" styleClass="datagrid">
<columns>
<column width="150">
<header value="UserName" hAlign="center" styleClass="header"/>
<item value="${user.userName} " hAlign="center" styleClass="item"/>
<aggregate function="count" var="total"/>

</column>
<column width="200">
<header value="EMail Id" hAlign="center" styleClass="header"/>
<item value="${user.emailId}" hAlign="center" styleClass="item"/>
<aggregate function="avg" var="total"/>

</column>
<column width="200">
<header value="Address" hAlign="center" styleClass="header"/>
<item value="${user.address}" hAlign="center" styleClass="item"/>
<aggregate function="avg" var="total"/>

</column>
</columns>
<rows styleClass="rows" hiliteStyleClass="hiliterows"/>
<alternateRows styleClass="alternaterows"/>
<paging size="5" count="${count}" custom="true" nextUrlVar="next"
previousUrlVar="previous" pagesVar="pages"/>
<order imgAsc="up.gif" imgDesc="down.gif"/>
</ui:dataGrid>
<table width="500" style="font-family: arial; font-size: 10pt">
<tr>
<td align="left" width="33%"><c:if test="${previous != null}">
<a href="<c:out value="${previous}"/>">Previous</a>
</c:if>&nbsp;</td>
<td align="center" width="33%"><c:forEach items="${pages}"
var="page">
<c:choose>
<c:when test="${page.current}">
<b><a href="<c:out value="${page.url}"/>"><c:out
value="${page.index}" /></a></b>
</c:when>
<c:otherwise>
<a href="<c:out value="${page.url}"/>"><c:out
value="${page.index}" /></a>
</c:otherwise>
</c:choose>
</c:forEach></td>
<td align="right" width="33%">&nbsp; <c:if test="${next != null}">
<a href="<c:out value="${next}"/>">Next</a>
</c:if></td>
</tr>
</table>
<%
}
%>
</body>

I'm facing this issue:

exception
:(
org.apache.jasper.JasperException: /pagination.jsp(91,0) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Validator$ValidateVisit or.checkXmlAttributes(Validator.java:1174)
org.apache.jasper.compiler.Validator$ValidateVisit or.visit(Validator.java:821)
org.apache.jasper.compiler.Node$CustomTag.accept(N ode.java:1512)
org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node .java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.j ava:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2343)
org.apache.jasper.compiler.Validator.validate(Vali dator.java:1739)
org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:166)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:315)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:295)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:282)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet .java:717)


Can anyone help me?

Thanks in Advance