Re: nested Sets

2005-11-22 Thread Danny Lee
The typical case for DynaForm is a very simple case, when you have couple of basic properties you have in your Form. I supose, that creating of a separate ActionForm class is more appropriate for your case. If you are new to Struts and have to work really fast (it was my case couple of months

Re: nested Sets

2005-11-22 Thread Bouvet Konsulent
/msg32014.html)? from my struts-config.xml: cheers, pj -Opprinnelig melding- Fra: Danny Lee [mailto:[EMAIL PROTECTED] Sendt: 21. november 2005 17:18 Til: user@struts.apache.org Emne: Re: nested Sets Well, your problem is storing the value in "formulaPart". What is f

RE: nested Sets

2005-11-21 Thread David G. Friedman
Are you positive that your action has done a Hibernate query that returns a set of data into your POJO so that your problem is only the nested iteration? Are you positive your beans are being saved in a scope (most likely request or session, not application), etc. ? Regards, David -Origin

Re: nested Sets

2005-11-21 Thread Danny Lee
Well, your problem is storing the value in "formulaPart". What is formulaPart? 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/a

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-21 Thread Danny Lee
You just have to organize something like seto of B's in yur A and set of C's in your B. This has to be done per Hibernate ('s in hibernate.cfg.xml and List getters setters in DAO Classes). When you've done this, you can iterate all the attributes without big prob's. After user submiting new va

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: Iterating through nested sets of objects

2004-10-12 Thread Hubert Rabago
Just based on your working example, shouldn't you be using: with id="element2" instead of name="element2"? On Tue, 12 Oct 2004 19:49:28 +1000, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to output the contents of a set of nested Objects in a JSP > page using the tagli

Iterating through nested sets of objects

2004-10-12 Thread Langdon Stevenson
Hi I am trying to output the contents of a set of nested Objects in a JSP page using the taglib. I have three objects that are persisted using Hibernate: 1. Student - (contains a HashSet of Project called 'projects') 2. Project - (contains a HashSet of Url called 'urls') 3. Url - (contains a strin