| 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.
|
 |
 |
|
|
subject: Error is Spring MVC - items should be Map, Array or a collection.
|
|
|