accessing a Collection through a jsp-bean

2005-10-28 Thread Bouvet Konsulent
hello, I have a Struts form-bean which contains a HashMap. The keys of this hashmap is an object of type GeSectionComponent. In my jsp, I iterate over a collection of these GeSectionComponents. For each iteration, I would like to lookup in the HashMap to retrieve the value corresponding to the GeSe

nested Sets

2005-11-21 Thread Bouvet Konsulent
hello, I am using Struts 1.2.7 together with Hibernate 3.0. My datamodel is not too complex, but one of my Struts-forms needs to fetch data from several tables. My tables are called A, B and C. One A contains many B's and one B contains many C's. In Struts, I would need to display data from all thr

Re:nested Sets

2005-11-21 Thread Bouvet Konsulent
thanks for the answer! I have tried to follow your suggestions, but I can not get Struts to populate my Hibernate POJOs... This is the code I am using: MyForm.java: private Set Bs; //this also has a getter and setter B.java (which is a Hibernate-generated POJO) contains e.g. the following proper

Re: nested Sets

2005-11-21 Thread Bouvet Konsulent
sorry for the bad formatting in my previous mail... I try again: thanks for the answer! I have tried to follow your suggestions, but I can not get Struts to populate my Hibernate POJOs... This is the code I am using: MyForm.java: private Set Bs; //this also has a getter and setter B.java (which

Re: nested Sets

2005-11-22 Thread Bouvet Konsulent
ormulaPart? You are populating the form, and you have lot of input fields after populations. So you have to have formulaPart[x] as a property, and List formulaPart in the scope! Read this: http://www.developer.com/java/ent/article.php/2233591 Cheers Danny Bouvet Konsule