Hi Everyone

I'm working on displaying a collection using <HTML:SELECT>.
I'm our case we have a collection of value objects in session scope ,so for
e.g
in our case we have a collection of Category in session scope ,Which further
has 
a collection of subCategory and I need to display them in a select list in
way like

Category name1
...subCategory name1
...subCategory name2

Category name2
...subCategory name1
...subCategory name2


class Category()
{
        String name;
        String id;
        Collection subCategory;

}

Class SubCategory{
String subName;
String subID;
}

So far I'm successfull with first part that is displaying Category name with
their id as value ,my code is

<html:select property="availableList" size="18" multiple="true">
<html:options collection="availableFieldList"
 property="lookupType"
 labelProperty="lookupTypeLabel"/>
 </html:select>


where availableFieldList is the collection of Category ,

Can anyone suggest few ideas for my second step of displaying subcategories
too in required fashion,

Thank You


**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

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

Reply via email to