• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to map list of object from jsp to command object in spring

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello sir,

I am using springMVC , I have command object as pojo class with string parameters and one stirng[] parameter. I am getting list of object from controller and i am able to display list of object in my jsp page in table formate.user checked checkbox for some rows of table to perform some operation , if i am using string[] for <form:checkbox> its working fine ,but i want to assing whole object with checkbox ,so i kept one property as Arraylist<fault> in command object . But its giving dataBinding error.

I want to know that , how can populate Array of objects back to controller or command object from jsp page.is it possible ? or not ?

I need urgent help please help me.
thanks .

I am sending corresponding code here

1. my command object is Fault form


2. my jsp which is displaying fault list is as follow I am getting list of fault objects in "alarmPage.pageContents".
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic