• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Struts and nested:optionsCollection

xospec1alk

Diamond Member
alrite, i have a HashMap<Integer,ArrayList<myObject>>

myObject has 2 attributes, selectKey and selectValue.

I want to create a select box and populate the options with the key and value from myObject

what am i doing wrong here?

i get a java.lang.ClassCastException: java.lang.Integer
 
It's been about a year and a half since I've used Struts. I don't remember a nested:select tag.

I just looked at some of my old code that's doing something similar to what you're describing. Not sure if this will help you, but it looks like I was just getting the values with bean:write and sticking it in the html at the appropriate spot.

If you do bean:writes inside your nested:iterate does it display the values you expect without messing with the select box?
 
Back
Top