This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Spring Framework-Passing Model data from Controller to JSP

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way, that i can pass the model data into the JSP(Different view,can be Jstl view or Redirect View).

Present code:
Map myModel = errors.getModel();
List userlist = this.getUserLdapManager().getUsers(user);
log.info("searchController:userlist.size()"+userlist.size());
Member user = (Member)userlist.get(0);
myModel.put("model",user);
log.info("searchController:myModel-size"+myModel.size());
return new ModelAndView(getAccountDetailsView(),"user",myModel);

Description:
Getting the values from the ldap ans storing in Member Bean.
Storing in map myModel. I am using above code but in my account details
i am unable to see the data. But the userlist i am able to see.
Please can anyone tell me, what is the problem

Thanks
Shilpa
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!