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 />

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to