You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Colic <al...@pop-ware.com> on 2001/04/26 21:57:15 UTC

How to create multiple select boxes?

Hi,

quick questions.

I am trying to figure out how to create multiple select boxes on the fly.

I have a class CategoryList the extends vector. To this list I add elements
of type Category, which has a getCategoryValues() method which returns a
vector of categories (String) as well as a getCategoryName().

Now the big questions, on a page I want to pull this object out of the
session kept under the key "CategoryList" and create select boxes out of the
Category objects held in CategoryList. At design time I do not know how many
elements there are in CategoryList but for each element I need to create a
select box populated by that elements getCategoryValues() method;

Any help or pointers is appreciated.

Alex