Jana, It would help to see the actual error.
More below... > 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"> This says you have a bean named "ViewListingForm" that has some scope (request/session) in your JSP. Also that you will refer to that items in the property collection in "listingsSummary" by the scripting variable "ViewListingBean". The property accesses the collection (List/Vector) you want by calling the form getter for "listingsSummary". To be thorough, you will need to include the "type" attribute to identify the object type that will be found in the collection "listingsSummary". It looks like type="java.util.Vector". > > Here is my form Bean > > public Vector getListingsSummary() > { > return(this.listingsSummary); > } > > public void setListingsSummary(Vector listingsSummary) > { > this.listingsSummary = listingsSummary; > } > The getter will be called by the iterate tag for "listingsSummary" and you have the case correct. > > 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! Always check the Javadoc (start at: http://jakarta.apache.org/struts/ ). The "id" attribute names the scripting variable you will use within the iterate tag. In other words, each object contained in the Vector "listingsSummary" will be referred to as "ViewListingBean". So you can now use ViewListingBean to access the individual properties of the objects in your listingsSummary. For example <bean:write name="ViewListingBean" property="someProperty"/> > > 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>