Hello All,
I'm trying to understand why I cannot access the properties in a
DynaActionForm bean via JSTL (e.g. <c:out>). For example, given a
DynaForm configured thusly:
<form-bean
name="mapserviceSummaryForm"
dynamic="true"
type="org.apache.struts.action.DynaActionForm">
<form-property name="mapserviceList" type="java.util.ArrayList"/>
</form-bean>
I am trying to access the name property of one of the beans in the
ArrayList from JSP. This works fine:
<bean:write name="mapserviceSummaryForm"
property="mapserviceList[0].name" />
but this does not:
<c:out value="${mapserviceSummaryForm.mapserviceList[0].name}" />
I don't think that it's a scope problem or the bean not being populated
because this:
<c:out value="${mapserviceSummaryForm}" />
produces this (there's only one bean in the ArrayList):
DynaActionForm[dynaClass=mapserviceSummaryForm,mapserviceList={basicworld3}]
Thanks for any help or clarification on what I'm doing wrong!
-- john
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- RE: JSTL and DynaActionForm John C Cartwright
- RE: JSTL and DynaActionForm Brandon Goodin