Hi, I'm new to Struts 2. I have searched the web but can not find anything on my issue.
Basically I have a many to 1 relationship between 2 objects, Contact and contactmethod (contact being the 1). Contacts objects contain a person's name and contact method is basically just a name value pair. What I would like to display is the name and all contactmethods in 1 list.... Example: John Smith phone 555-1212 John Smith fax 555-2323 <mailto:[EMAIL PROTECTED]> My hibernate query returns a list. List l = session.createQuery("FROM Contact c left join c.contactmethodses").list(); It seems that the way the join is handled is to make each list entry actually be an array of 2 objects (a contact object and a contactMethod object). Here is my JSP code... <s:iterator value="contacts" status="status"> <tr> <td class="nowrap"><s:property /></td> <td class="nowrap"><s:property value="<what do I put in here???"/></td> </tr> </s:iterator> I will get the correct # of lines, however, I can not figure out how to read the values out of the array in this list item. Using <s:property /> will get me [EMAIL PROTECTED] but how do I actually read properties of that object or the 2nd object (contact method)? What do I put in the value field of my property tag? Thanks, Brian This electronic transmission may contain PRIVILEGED AND CONFIDENTIAL information intended only for the addressee(s). If you are not the intended recipient, or the employee or agent responsible for delivery to the intended recipient(s), please note that any review, dissemination, use, distribution or copying is strictly prohibited. If you receive this in error, please notify the sender immediately, destroy any paper copies and delete it from any computer. Thank you.