You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bret Kumler <bk...@firstam.com> on 2004/01/15 00:33:18 UTC
Question with beans and nested tag
I have a question for you guys.
I have a bean that has an ArrayList in it.
MyBean{
private ArrayList theResults;
public void setData (ArrayList x){
this.theResults=x;
}
public ArrayList getData (){
return this.theResults;
}
In my action I set the bean to the request.
httpServletRequest.setAttribute("gotcha", fb);
In the JSP page I want to display the values in the array.
Is this the correct syntax?
<nested:root id="a" name="gotcha" scope="request">
<logic:iterate id="gotcha">
<bean:write property="service_type"/>
<bean:write property="service_type_description"/>
<bean:write property="service_type_id"/>
</logic:iterate>
</nested:root>
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org