You've got it wrong there. The solution for your simple example is this:
<%@ page import="java.util.*"%> <%@ taglib uri="/WEB-INF/c.tld" prefix="c"%> Sample using JSTL Core tags<br> <% Map map = new HashMap(); map.put("name","Anto Paul"); map.put("Place","Ollur"); map.put("Job","Programmer"); request.setAttribute("list",map); %> <c:forEach var="i" items="${list}"> <c:out value="${i.key}:${i.value}"/><br> </c:forEach>
This will print a name:AntoPaul<br>Place:Ollur<br> etc. To get back to your original question, this might be solved if your DynaBeans are instances of Map in the following way:
Servlet: List list = rsdc.getRows(); request.setAttribute("list",list);
JSP: <c:forEach var="i" items="${list}"> <c:out value='${i["empno"]}'/> </c:forEach>
Lucky I had a few minutes to spare;) I usually just scream "read the spec":)
Martin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]