• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic