I tried this it gives error.
/jstl1.jsp(12,25) equal symbol expected
<%@ 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["name"]}"/><br>
</c:forEach>
rgds
Antony Paul
----- Original Message -----
From: "Antony Paul" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 3:53 PM
Subject: Re: Calling a bean method in <c:out/>
> Then any other way to do it using JSTL or Jakarta taglibs. This
functionaly
> is very useful because most pages uses the same technique to display
> content. I think Struts is providing similar functionality.
>
> Antony Paul.
>
> ----- Original Message -----
> From: "Martin van Dijken" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 05, 2003 3:37 PM
> Subject: Re: Calling a bean method in <c:out/>
>
>
> > Hey Antony,
> >
> > It is correct that that gives an error. You see it is impossible to call
> > methods in the Expression Language of JSTL. If your bean-class
> > implements java.util.Map however, it is possible to get the item you
> > want by using:
> >
> > <c:forEach var="i" items="${list}">
> > <c:out value="${i["empno"]}"/><br>
> > </c:forEach>
> >
> > Grtz,
> >
> > Martin
> >
> >
> > ---------------------------------------------------------------------
> > 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]