Thank you for the reply.
I am new to JSTL. I tried to use it like this in JSP
<c:forEach var="i" items="${list}">
<c:out value="${i.get("empno")}"/><br>
</c:forEach>
But it gives error
org.apache.jasper.JasperException: /TestDB.jsp(48,29) equal symbol expected
Antony Paul
----- Original Message -----
From: "Martin van Dijken" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 3:11 PM
Subject: Re: Calling a bean method in <c:out/>
> Hey Antony,
>
> Try using the <c:forEach> tag. It loops each item of lists, arrays etc.
>
> Martin
>
> Antony Paul wrote:
> > Hi all,
> > How to call a method of a bean which returns an Object from <c:out/>
> > tag. I have JSTL Standard 1.0 in a Tomcat 4.1.27. I am using commons
> > beanutils class RowSetDynaClass to display data in JSP pages.
> > In servlet
> > List list = rsdc.getRows();
> > request.setAttribute("list",list);
> >
> > In JSP I have to code like this
> > List list = (List) request.getAttribute("list");
> > Iterator it = list.iterator();
> > while(it.hasNext()){
> > DynaBean bean = (DynaBean) it.next();
> > out.print(bean.get("empno"));
> > }
> >
> > How to do it using JSTL Standard 1.0.
> >
> > rgds
> >
> > Antony Paul
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]