I believe that EL only supports properties (including maps and lists),
but not methods.
Digby
matador wrote:
given the following code:
1 <table>
2 <c:forEach var="elm" items="${list}">
3 <tr>
4 <td>
5 <c:out value="${elm.showMeSomething()}">
6 </td>
7 </tr>
8 </c:forEach>
9 </table>
line #5 will not work. since its not a regular accessor (get...). I
assume this is by design, correct?
the workaround that i found was this:
5 <%= ((MyObj) pageContext.getAttribute("elm")).showMeSomething(); %>
is there an easier to do this?
thx
for ref:
http://forum.java.sun.com/thread.jspa?threadID=641164&messageID=3772676
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]