tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matador <matador1910-li...@yahoo.com>
Subject JSTL c:out method access
Date Thu, 20 Oct 2005 03:06:05 GMT
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: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message