You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ashokd <as...@visualsoft-tech.com> on 2003/03/31 15:23:32 UTC
Nested Iterator Design Question (ValueObject or String variables ValueObject)
Hi,
I have some doubts regarding ValueObject and ActionForm.
I am putting all variables in ActionForm as Strings (because I doesn't want to populate default values in a form (like 0 for int and 0.0 for float)).
Data getting/setting from Business Layer as ValueObjects (I am putting all variables in ValueObject with appropriate primitive Data types only).
The above decessions are good or any suggestions ??
I am coming to my actual requirement and Doubt
I have a nested:iterate table. (I am displaying some records as nester:iterate texts)
To populate data in nested:iterate table I need to set some ArrayList of Objects.
My doubt is Shall I set these objects as ValueObjects or String Variables ValueObject.
If I kept String Variable ValueObjects as ArrayList of objects: I need to convert all ValueObjects into String Variable ValueObjects( this become performance issue).
If I kept ValueObject as ArrayList of objects: Here I will get initilize variables problem.
I think every one will face this type of design in their projects, pls help me on this.
String Variables ValueObject: This means I am putting all variables in this as String only.
Thanks & Regards,
Ashok.