Hello. I'm trying to populate a select field with options coming from an array list. I cannot use optionsCollection because I have to assign an id to every option element (it's a requirement I cannot bypass). My idea was to use an iterator within the select tag, but i get an JSP compile exception. It has to do with the way I add the value attribute in the option element. Below is the code:
It doesn't even compile. It complains that codeBean cannot be resolved.
When I try:
There is another exception. Now it says there is a problem in the attribute codeBean.
Any suggestions? Thanks in advance for your time...