Ash S
Ash S

Reputation: 275

how to populate Struts 2 UI select tag?

How can I populate Struts 2 UI select tag?

I keep getting the error:

tag select, field list: The requested list key roles could not be resolved as a collection/array/map/enumeration/iterator type.

Upvotes: 0

Views: 617

Answers (1)

Ankit Shukla
Ankit Shukla

Reputation: 21

Most likely that would be if your list roles is not initialized ( null ) . Or another reason can be if you have not declared an appropriate getter .

Upvotes: 2

Related Questions