Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Spring and the fly likes Not able to pass List values to view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Not able to pass List values to view" Watch "Not able to pass List values to view" New topic
Author

Not able to pass List values to view

vikas sharmaa
Ranch Hand

Joined: Jun 28, 2007
Posts: 191
i am using Spring 3.0 and not able to pass List to the view. Please look into my code below:

controller class:



Here i am creating a simple myList List with 2 Objects of User class.

and, here below is the code in jsp page:



but, i am getting a blank myList. On view source, the following html is generated:



please tell, where i am going wrong? thank you.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If that's the source then it's not even evaluating the JSTL.
vikas sharmaa
Ranch Hand

Joined: Jun 28, 2007
Posts: 191
thank you newton. i was mistakenly using functions instead of core jstl taglib.
 
jQuery in Action, 2nd edition
 
subject: Not able to pass List values to view