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]



Reply via email to