Hello all,
I need to have a set of categories and subcategories selection on a JSP
page similar to what eBay has when you are selling an item.
When you select a main category the secondary category box is populated
with options and so forth.
My first question is: How to organize that? Shall I have a data
structure with a parentId field so that I can do a SQL select for all
the items with that parent category?
Second question is: Shall I use some sort of data structure like a list
of objects where the object is a representation of a Category and its
fields such as CatID, ParentID, Name.
I guess I should have Javascript do the job as far as populating those
lists for the interface. Are there any smart solutions to that? Is there
any example on the web that anyone is aware of?
I am doing it for a parts web site where I am categorizing and
subcategorizing the parts. I will have up to 4 levels of categories
including the main one which is required, the other are optional.
Any ideas?
Thanks,
C.F.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]