Re: taglib-datagrid, IllegalArgumentException , org.apache.taglibs.datagrid.DataGridTag.setItems(DataGridTag.java:928)

"Rashmi Rubdi" <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
It works! The below JSP Scriptlet code could easily be replaced as follows:

<jsp:useBean id="accountBean" class="test72.bean.AccountBean" scope="request"/>

<c:forEach var="invoice" items="${accountBean.invoices}">
    ${invoice.id}<br/>
    ${invoice.itemName}<hr/>
</c:forEach>

You only need to change the package of AccountBean to your
AccountBean's package name above.

-Rashmi

On 4/7/07, [email protected] <[email protected]> wrote:

> Here, a chunck from my code that I am using to track the issue:
>
> <struts:property value="accountBean.accountNumber" /> <br />
>
> <% AccountBean bean = (AccountBean) request.getAttribute("accountBean") ; %>
> <% ArrayList<InvoiceBean> invoices1 =  bean.getInvoices(); %>
> <% out.print(invoices1); %>
>
> <c:forEach items="${accountBean.invoices}"  var="inv" >
> <c:out value="${inv.id}" />
> </c:forEach>
> <br />
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.