id is the name of the localized object.  In the example below localName is
yourBean.yourVector which you'll use inside the iterate tags.

<logic:iterate id="localName" name="yourBean" property="yourVector">
  <bean:write name="localName" property="vectorProperty1" />
  <bean:write name="localName" property="vectorProperty2" />
  ...
</logic:iterate>

-c

----- Original Message -----
From: "Jana Navaneethan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 11:55 AM
Subject: Problem with <logic:iterate> using Vector?


> Hi,
>        I have a Vector in my form bean which contains multiple Objects, I
> want to loop through the contents of this Vector in my JSP page, I have a
> getListingsSummary() method in my form bean which is viewListingForm, But
> for some reason when I call my JSP it throws some exception like
> No bean found under attribute key viewListingBean
>
> Here is my iterate tag
> <logic:iterate id="viewListingBean" name="viewListingForm"
> property="listingsSummary">
>
> Here is my form Bean
>
>    public Vector getListingsSummary()
>    {
>       return(this.listingsSummary);
>    }
>
> public void setListingsSummary(Vector listingsSummary)
>    {
>       this.listingsSummary = listingsSummary;
>    }
>
>
> My Action class sets the form bean before forwarding to the JSP page..
>
> ViewListingForm listingform = (ViewListingForm) form;
> listingform.setListingsSummary(listingsSummary);
>
>
> BTW what is this id means in the iterate tag? Any help would be greatly
> appreciated!
>
> Thanks in advance,
> Jana.
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to