struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ashokd" <ash...@visualsoft-tech.com>
Subject Re: bean:write problem
Date Wed, 30 Jan 2002 22:47:45 GMT
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" <george@direct2s.com>
To: "Struts UserForm" <struts-user@jakarta.apache.org>
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message