You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ashokd <as...@visualsoft-tech.com> on 2002/01/30 23:47:45 UTC
Re: bean:write problem
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" /> </td>
<td valign="top" align="left" height="20"><bean:write name="testBean"
property="testWeight" /> </td>
<td valign="top" align="left" height="20"><bean:write name="testBean"
property="testTaste" /> </td>
</tr>
</logic:iterate>
Thanks & Regards,
Ashok.D
----- Original Message -----
From: "George Jacob" <ge...@direct2s.com>
To: "Struts UserForm" <st...@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