문제

Actually several links are there, describing how to populate select tag in struts2 using arraylist.Drop down list in struts2. But i didnt get it. Error I got is

tag 'select', field 'list', name 'role': The requested list key '%{oList}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]

(My list name is oList,which is already filled from action class from database)

List oList=new ArrayList();

Please help me to clear my error. I tried several. Sorry if i do any mistake.

도움이 되었습니까?

해결책

There should be setters and getters for your list (in your case "oList") for corresponding action class when assigning to struts select tag.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top