- Mike
At 01:16 AM 3/12/2004, you wrote:
I think I have done the right ,yet it still doesnt work this is mynested bean file FontBean.java
public class FontBean { public int getSize() { return size; }
public void setSize(int size) { this.size = size; }
public String getFontName() { return fontName; }
public void setFontName(String fontName) { this.fontName = fontName; }
private int size; private String fontName;
}
This is my form bean file TestBeanForm.java public class TestBeanForm extends ActionForm {
public FontBean[] getTestBean() { return testBean; }
public void setTestBean(FontBean[] testBean) { this.testBean = testBean; }
private FontBean[] testBean;
}
this is what I wrote in jsp file
Submit Changes anyway, running the jsp file still tells "no collection found " what happened? I m exahusted! Thanks&Regards
>From: Mark Lowe >Reply-To: "Struts Users Mailing List" >To: "Struts Users Mailing List" >Subject: Re: submit an arraylist >Date: Fri, 12 Mar 2004 09:59:50 +0100 > >does your nested bean have a getString1() method? > >There's load of examples in the archives. Have a look. > > > >On 12 Mar 2004, at 09:48, Mu Mike wrote: > >>Mark >>I did as you wrote >> >> >> >>in jsp file: >> >> >id="mybean1" indexId="index1"> >> >> >> Submit Changes >> >> >>it says "no collection found" >> >>I then changed the jsp file to this >> >> >> >id="mybean1" indexId="index1"> >> >indexed="true"/> >> >> Submit Changes >> >> >>it still reports "no collection found" >> >>Thanks&Regards
>> >> >>>From: Mark Lowe >>>Reply-To: "Struts Users Mailing List" >>> >>>To: "Struts Users Mailing List" >>>Subject: Re: submit an arraylist >>>Date: Fri, 12 Mar 2004 09:35:11 +0100 >>> >>> >>>The name in the iterate tag needs to match the name you've using >>>to define the form bean in struts-config >>> >>> >>> >>> >>> >>> >>>... >>> >>>On 12 Mar 2004, at 09:23, Mu Mike wrote: >>> >>>>I write this in jsp file,but it failed >>>> >>>> >>>> >>>id="mybean1" indexId="0"> >>>> >>>> >>>> Submit >>>>Changes >>>> >>>> >>>> >>>>is my jsp code right? >>>> >>>> >>>>>From: "Mu Mike" >>>>>Reply-To: "Struts Users Mailing List" >>>>> >>>>>To: [EMAIL PROTECTED] >>>>>Subject: submit an arraylist >>>>>Date: Fri, 12 Mar 2004 07:55:33 +0000 >>>>> >>>>>I have a form as the below >>>>> >>>>>TestBeanForm.java public class TestBeanForm extends ActionForm { >>>>> public ArrayList getTestBean() { >>>>>if(testBean==null) testBean=new ArrayList(); return >>>>> testBean; } >>>>> >>>>> public void setTestBean(ArrayList testBean) { >>>>>this.testBean = testBean; } >>>>> >>>>> >>>>> private ArrayList testBean; >>>>> >>>>>} >>>>> >>>>> >>>>>how should I write in my configruatio file using logic:iterate >>>>>to submit values for my ArrayList testBean? >>>>> >>>>>_____________________________________________________ ____________ >>>>>~{Cb7QOBTX~} MSN Explorer: http://explorer.msn.com/lccn/ >>>>> >>>>> >>>>>--------------------------- ----------------------------------------- >>>>>- >>>>>To unsubscribe, e-mail: >>>>>[EMAIL PROTECTED] >>>>>For additional commands, e-mail: >>>>>[EMAIL PROTECTED] >>>>> >>>> >>>>__________ _______________________________________________________ >>>>~{Cb7QOBTX~} MSN Explorer: http://explorer.msn.com/lccn/ >>>> >>>>----------------------------------- ---------------------------------- >>>>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] >>> >> >>__________________ _______________________________________________ >>享用世界上最大的电子邮件 系统— MSN Hotmail。 >>http://www.hotmail.com >> >>---------------------------------- ----------------------------------- >>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] > _________________________________________________________________ 免费下载 MSN Explorer: http://explorer.msn.com/lccn --------------------------------------------------------------------- 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]