Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Error is Spring MVC - items should be Map, Array or a collection.

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am trying to use spring MVC and get the following error:


I have a simple jsp page with a drop down that IS POPULATED AS MAP IN THE CONTROLLER.

Here is my jsp page :



"subProcesses" is a Map that is set in the controller's reference data method.

Many Thanks.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the controller code?

And to make sure it's a Map - try and print subProcesses.getClass().getName() or subProcesses.toString() in the JSP and see what it thinks it's getting instead of a Map subclass.
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Resolved it for the time being .. my replacing some jars notibly spring-web-mvc.jar.

Working on a tight schedule .. so will see later what and why the error

Thanks for help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic