Actually the ArrayList menuComponentBean is having all the menuNames which
I am showing in the top header row of a html table. I want to set the
colspan of all the other rows equal to the number of menu items in this
row.



Thanks,
Prashant.




                                                                                       
                            
                    "Nagendra                                                          
                            
                    Kumar O V S"         To:     <[EMAIL PROTECTED]>                   
               
                    <[EMAIL PROTECTED]        cc:                                      
                                 
                    go.com>              Subject:     Re: Nested Bean Problem          
                            
                                                                                       
                            
                    07/25/03                                                           
                            
                    10:22 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    "Struts Users                                                      
                            
                    Mailing List"                                                      
                            
                                                                                       
                            
                                                                                       
                            



                                                                                       
        
 hi,                                                                                   
        
 why do u want to get the size of the collection...?                                   
        
 u can use indexId attribute which gives the index of the iterator                     
        
                                                                                       
        
 -- nagi                                                                               
        
                                                                                       
        
 -------Original Message-------                                                        
        
                                                                                       
        
 From: Struts Users Mailing List                                                       
        
 Date: Friday, July 25, 2003 09:57:28 AM                                               
        
 To: [EMAIL PROTECTED]                                                            
 Subject: Nested Bean Problem                                                          
        
                                                                                       
        
 Hi,                                                                                   
        
 I have a problem handling nested beans..                                              
        
 For example...                                                                        
        
 I have a userBean as given below                                                      
        
 private int userID;                                                                   
        
 private String lastName;                                                              
        
 private String firstName;                                                             
        
 private ArrayList roleUser;                                                           
        
 Where the last field Arraylist is the arraylist of the objects of the bean            
        
 called roleUserBean.                                                                  
        
                                                                                       
        
 Again the roleUserBean has the following properties.                                  
        
 private int roleid;                                                                   
        
 private String desc;                                                                  
        
 private String name;                                                                  
        
 private ArrayList menuComponent;                                                      
        
 The last property menuComponent is the arrayList of objects of the bean               
        
 called menuComponentBean.                                                             
        
                                                                                       
        
 Now the menuComponentBean contains                                                    
        
 private int menuID;                                                                   
        
 private String menuName;                                                              
        
 private String description;                                                           
        
                                                                                       
        
                                                                                       
        
 I have put the userBean in the session scope. Now I want to know how many             
        
 objects are there in the menuComponentBean (size of the ArrayList                     
        
 menuComponentBean). I am not able to get that. Please help.                           
        
                                                                                       
        
 Thanks in advance.                                                                    
        
 Prashant M Desai.                                                                     
        
                                                                                       
        
                                                                                       
        
                                                                                       
        
 ---------------------------------------------------------------------                 
        
 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]                          
                                                                                       
        
                                                                                       
        
 .                                                                                     
        
                                                                                       
        
                                                                                       
        
                                                                                       
        
                                                                                       
        
                                                                                       
        
                                                                                       
        
                                                                                       
        
                                                                                       
        


____________________________________________________
  IncrediMail - Email has finally evolved - Click Here




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

Reply via email to