Mike,

I was trying to add the capability to print attributes into keel.jsp as practice for displaying arbitrary columns in tables for an app I am working on. I know I can do this with nested Outputs, but attributes would be much simpler if it works.

Is there a way to iterate over attributes in a JSP?

Here's what I tried:
<logic:iterate id="oneOutput" name="outputs">
<tr>
<td><bean:write name="oneOutput" property="name"/></td>
<td><bean:write name="oneOutput" property="content"/></td>
<!-- ***** START OF MY CHANGES ****-->
<td>
<logic:present name="oneOutput" property="attributes">
<bean:define id="allAttrib" name="oneOutput" property="attributes"/>
<logic:iterate id="oneAttrib" name="allAttrib">
<bean:write name="oneAttrib" property="name"/>=
<bean:write name="oneAtrrib" property="value"/><br>
</logic:iterate> </logic:present>
</td>
<!-- ***** END OF MY CHANGES ****-->
</tr>


But, I get:

org.apache.jasper.JasperException: Cannot create iterator for this collection

Also, in ResponseElementDynaBean, I don't see the "name" and "value" properties
being set for each attribute bean, so how should I access those?

Thanks,
Shash

</logic:iterate>



http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com

Reply via email to