Change your line <html:text name="familylist" property="rPart[0].repair"/> to <html:text name="familylist" property="rPart[0].repair" readonly="true"/>
For ur reference http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-html.html#text The problem with your bean:write tag could be it doesn't accept a collection. Cheers, Siva. On 5/28/06, skp <[EMAIL PROTECTED]> wrote:
Hi, I have a top level "Part" Bean which has a child Bean "Called rPart". I am setting up the collection and forwarding the collection called "familylist" to my dis.jsp Code Snippet of dis.jsp ----------------------------------------------------------------------------------------------------------------------------- <logic:iterate name="familylist" id="familylist" type=" com.skp.skp.refbom.api.Part" indexId="ctr"> <logic:notEmpty name="familylist" property="refurbishedPart"> <!-- Repair Flag --> <td class="borderedtd"> [u]<html:text name="familylist" property="rPart[0].repair"/></td>[/u] </td> </logic:notEmpty> </logic:iterate> ------------------------------------------------------------------------------------------------------------------------------- The abv fetches the value and display it properly. However, that becomes "EDITABLE" and that is something not desirable. If I change the underline to <td><bean:write name="familylist" property="rPart[0].repair"/></td> I do not get anything in the screen. This problem is happening only for child object. The propertis of Parent object "Part" works fine. so <td><bean:write name="familylist" property="npi"/></td> works ok considering "npi" is an attribute of parent object. Please let me know if there is something fundamentally wrong with this approach. OR I can use someother way to display non-editable and display (read-only) value. Best Regds, SKP --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=32516&messageID=63009#63009 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]