You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by GR...@intellicare.com on 2005/08/09 21:13:43 UTC
Re: {Spam?} Category and Subcategory logic within Struts
Funny you mention this... since apparently this kind of functionality has
been foreseen and built right into JSF..! I don't suppose moving over to
jSF is an option for you, right....?
Geeta
"C.F. Scheidecker Antunes" <na...@antunes.eti.br>
08/09/2005 02:56 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
Struts Users Mailing List <us...@struts.apache.org>
cc
Subject
{Spam?} Category and Subcategory logic within Struts
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
CONFIDENTIALITY NOTICE:This email is intended solely for the person or
entity to which it is addressed and may contain confidential and/or
protected health information. Any duplication, dissemination, action
taken in reliance upon, or other use of this information by persons or
entities other than the intended recipient is prohibited and may violate
applicable laws. If this email has been received in error, please notify
the sender and delete the information from your system. The views
expressed in this email are those of the sender and may not necessarily
represent the views of IntelliCare.