This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes s:select issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:select issues" Watch "s:select issues" New topic
Author

s:select issues

Jonathan Sobel
Greenhorn

Joined: Nov 10, 2009
Posts: 2
I'm getting the "tag 'select', field 'list', name 'user.challengeQuestion': The requested list key 'questions' could not be resolved as a collection/array/map/enumeration/iterator type" error and am at a loss as to why...

My jsp


my action method


My struts.xml file


ApplicationContext.xml


I know the list objects are being populated on instantiation because I wrote a test to ensure that was the case. I'm just at a loss now as to what could possibly be wrong here. I think I've been staring at it too long.
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Is there a public getQuestions() in your action class?


OCJP 6 (93%)
Jonathan Sobel
Greenhorn

Joined: Nov 10, 2009
Posts: 2
Yes.
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Weird.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: s:select issues
 
Similar Threads
Equivalent of logic iterate in Struts 2
Need Help - Struts2 s:select issue - Urgent
Something wrong with my <s:select>
Data loading problem in select tag using ajax in struts2
s:select and data conversion