Hi Vlad,
What ever results in the least/simplest/fastest code!
The way I look at is that you have a special 'ViewSupport' layer in your app
that provides sorted copies of the data for presentation. This is seperate from
the main business logic. You can supply the data as maps/sets/lists
Hi, I have a basic design-level question to ask of those who are
using the struts framework. The question concerns how data from
the database get retrieved into the 'web-tier' beans
of the application when table joins are involved.
One approach is to nest objects. e.g. say we want to display
all
If known for nothing else, I may go down for creating the infamous
Monkey/Banana bean model example :)
I don't think that one object per row is much of an overhead for the
benefit it brings. You are going to have to marshal your results anyway,
so you may as well create separate objects.
Thanks Aaron,
Just to make sure, I believe the paragraph below is in favour
of not 'denormalizing'. I.e. the approach you're suggesting
is to return a list of Monkey objects
where each Monkey holds a reference to its Bananas. (Hey, it's
an odd example, but it's more fun than the old standby of
Do you know where I can find a really simple example using the
nested tags? I get the general idea that you're supposed to
describe a path to the nested object using '.' separators, but
I can't seem to find any docs or tutorials on using these tags.
5 matches
Mail list logo