You could do this a couple of ways (thinking out loud here):
1) Do some preprocessing and build a list of all the objects, but I
guess that would only work if your SubCategory class had the same
properties for name and ID.
2) Do some preprocessing and add ID/name pairs to a SequenceHashMap
I believe that what you really are wanting to do is use the OPTGROUP tag within
HTML's select tag. This allows you to create
a two level indented list of categories and subcategories in a select list.
Unfortunately Struts does not directly support this. I asked about this a couple of
months ago
: Michael D. Norman [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 10:04 AM
To: 'Struts Users Mailing List'
Subject: RE: HTML:SELECT giving headaches
You could do this a couple of ways (thinking out loud here):
1) Do some preprocessing and build a list of all the objects, but I
guess
3 matches
Mail list logo