Using java 1.4.1 and Struts 1.1 release

I have JSP code like this (it's nested inside a nested:nest:

<nested:root name="homePageForm">
<nested:nest property="customer">
<nested:iterate id="item" property="recommendations">
<p><nested:write property="id"/> <nested:write property="headline"/></p>
</nested:iterate>
...


which fails with the following:

javax.servlet.jsp.JspException: No getter method for property customer.recommendations[0].id
of bean homePageForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:286)
at org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWr iteTag.java:94)


However, if I change the code to this:

<nested:iterate id="item" property="recommendations">
<p><nested:write name="item" property="id"/> <nested:write name="item" property="headline"/></p>
</nested:iterate>


It renders correctly.

Why is this the case?

TIA,

--
Rick


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to