Hi,

I want to iterate through my arraylist of objects and
display the values using bean:write and submit them
with form.

My strut config has :

    <form-bean name="myForm"
type="org.apache.struts.validator.DynaValidatorForm">
      <form-property name="feild1"
type="java.lang.String"/>
      <form-property name="feild2"
type="java.lang.String"/>
      <form-property name="feild3"
type="java.lang.String"/>
  <form-property name="feild4"
type="java.util.ArrayList"/>
     </form-bean>

feild4 is an arraylist of javabean class mybean.
class mybean{
String new1;
String new2;
String new3;
public String getNew1() {
                return new1;
        }

        public void setNew1(String new1) {
                this.new1 = new1;
        }

        public String getNew2() {
                return new2;
        }

        public void setNew2(String new2) {
                this.new2 = new2;
        }

        public String getNew3() {
                return new3;
        }

        public void setNew3(String new3) {
                this.new3 = new3;
        }

}

so how do i iterate through the arraylist of bean
objects. I have to print the values of new1,new2, new3
and submit to form using html:hidden.
Please give me an example.



Thanks
Suchi


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to