In your struts-config.xml, is the action which initially displays your jsp page associated with TestBeanForm?
Niall ----- Original Message ----- From: "Mu Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 12, 2004 10:17 AM Subject: help! I m going mad > I just cant use logic:iterate correctly! > > this is my form bean class: > public class TestBeanForm extends ActionForm { > > public String[] getTestBean() { > return testBean; > } > > public void setTestBean(String[] testBean) { > this.testBean = testBean; > } > > String[] testBean; > > and this is my form bean declaration > <form-bean name="TestBeanForm" type="com.mike.form.TestBeanForm"/> > and this is what I have in my jsp file: > > <html:form action="/testAction.do"> > <logic:iterate name="TestBeanForm" property="testBean" id="mybean" > indexId="index1" > > <%-- <html:text property="fontName" value="12" indexed="true"/>--%> > </logic:iterate> > <html:submit property="submitValue">Submit Changes</html:submit> > </html:form> > > you can see, I commented out the <html:text> line, but I still kept getting > "No collection found" error, why? arent String[] a collection? > > _________________________________________________________________ > 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]