aspose file tools*
The moose likes Spring and the fly likes Error is Spring MVC - items should be Map, Array or a collection. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Error is Spring MVC - items should be Map, Array or a collection." Watch "Error is Spring MVC - items should be Map, Array or a collection." New topic
Author

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

rahul khanna
Ranch Hand

Joined: Sep 14, 2005
Posts: 48
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

Joined: Oct 18, 2000
Posts: 4121

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
rahul khanna
Ranch Hand

Joined: Sep 14, 2005
Posts: 48
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error is Spring MVC - items should be Map, Array or a collection.