RE: Need for a sample with indexed properties
Hi David, Thanks for the tip you send me; It helped solve my problem. I'm less of a beginner now ! -) Fred Le ven 03/10/2003 à 15:36, [EMAIL PROTECTED] a écrit : > I'm working through the same issues myself. > > here is a good start http://jakarta.apache.org/struts/faqs/indexedprops.html -- it > will cover the first 2 of your points. > > david > > -Original Message- > From: Frederic Dernbach [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 2:59 AM > To: struts-layout; struts-user > Subject: Need for a sample with indexed properties > > > Following up on a previous post, I currently experience big difficulties > managing indexed properties in a Struts form. > > Can somebody send me a complete sample with : > > - a form with an indexed properties (I need to see the setter and getter > methods). The O'Reilly "Programming Jakarta Book" says that, when a > property like [] is defined, the following methods > should be present : get(int a) and set(int > a, ProperyElement b> > > - the JSP reading this indexed property > > - an action populating the indexed property before forwarding to the > JSP. > > Thanks in advance. > > > > > > - > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need for a sample with indexed properties
I'm working through the same issues myself. here is a good start http://jakarta.apache.org/struts/faqs/indexedprops.html -- it will cover the first 2 of your points. david -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:59 AM To: struts-layout; struts-user Subject: Need for a sample with indexed properties Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly "Programming Jakarta Book" says that, when a property like [] is defined, the following methods should be present : get(int a) and set(int a, ProperyElement b> - the JSP reading this indexed property - an action populating the indexed property before forwarding to the JSP. Thanks in advance. - 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]
RE: Need for a sample with indexed properties
class MyForm{ public BankInfoStringBean getBankInfoBean(int index){ //lazy initialization while(index >= this.getBankList().size() ){ this.getBankList().add(new BankInfoStringBean()); } return (BankInfoStringBean)this.getBankList().getObject(index); } public void setBankInfoBean(int index,BankInfoStringBean bean){ this.getBankList().add(index,bean); } }//class myForm "/> Here myFormName is the name from ActionMapping. HTH. Regards, Shirish -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 9:59 AM To: struts-layout; struts-user Subject: Need for a sample with indexed properties Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly "Programming Jakarta Book" says that, when a property like [] is defined, the following methods should be present : get(int a) and set(int a, ProperyElement b> - the JSP reading this indexed property - an action populating the indexed property before forwarding to the JSP. Thanks in advance. - 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]
Need for a sample with indexed properties
Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly "Programming Jakarta Book" says that, when a property like [] is defined, the following methods should be present : get(int a) and set(int a, ProperyElement b> - the JSP reading this indexed property - an action populating the indexed property before forwarding to the JSP. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]