Hi,

I know that this isn�t a struts specific question but I really could do with
your help.  And this list is a guarantee for competent answers :-) !

My question is: how much should I save in a session?

Scenario:

I have a catalogue with say five levels:

e.g.
alcohol
   - wines
      - red wine
           - bordeaux
           - borgougne
                - grapes bla
                - grapes blub
           - Loire
      - white wine
      - rose

All of these levels are displayed as a tree on the catalogue page.  The
question I have is as follows: should I save the comlpete tree (with
description) in the session so that I only have to retrieve a particular
level at any given time or should I just save the state of the tree (for
example in a state object which also contains the shopping basket and
user_id etc), which would just consist of the last node of the tree
(node_id)?

Lets say I have put something in the shopping basket and want to return back
to the tree.  Should I rebuild the whole tree by asking the service layer to
return the tree depending on the last node_id or should I re-display the
tree from the session?

Any help on this matter would be very appreciated because it is always good
to hear opinions from others.  I know that this has nothing to with struts
but please....

Regards,

Michael



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

Reply via email to