The below example is worked by using Hastable and logic:iterate combination.
I think it is usefull for you.... Let me know..

<%

  java.util.Hashtable bunchList = new java.util.Hashtable();
  com.km.struts.tutorial.TestBean test1 = new
com.km.struts.tutorial.TestBean();
    bunchList.put("0",test1);
    bunchList.put("1",test1);
    bunchList.put("2",test1);

    request.setAttribute("bunchList",bunchList);
%>

 <logic:iterate id="testList" name="bunchList">
 <bean:define id="testBean" name="testList"
type="com.km.struts.tutorial.TestBean" property="value"/>
  <tr bgcolor="#f7faff">
   <td valign="top" align="left" height="20"><bean:write name="testBean"
property="testSize" />&nbsp;</td>
   <td valign="top" align="left" height="20"><bean:write name="testBean"
property="testWeight" />&nbsp;</td>
   <td valign="top" align="left" height="20"><bean:write name="testBean"
property="testTaste" />&nbsp;</td>
  </tr>
 </logic:iterate>


Thanks & Regards,
Ashok.D



----- Original Message -----
From: "George Jacob" <[EMAIL PROTECTED]>
To: "Struts UserForm" <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 10:00 AM
Subject: bean:write problem


Hi all.........

How we can write a value in JspWriter using bean:write tag which is
embedded in an object that stored in a Vector. The vector is iterated by a
logic:iterate tag. Pls help..


George


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

Reply via email to