Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Problem with binding List to Checkboxes in JSP

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Im really stuck and was hoping someone could help me I am trying to bind a List to the checkboxes tag, but im getting the following error.



Here is my Pojo .



Here is my controller



Here is my JSP



As you can see the products in menusection is a ArrayList so what else am I missing? Have I got my checkboxes binding path and items wrong?

Really appreciate some help on this :-)


 
Darren Carter
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok so I have had some playing around..

I now have configured the checkbox to



This works however why are are all the check boxes pre-ticked?

    Bookmark Topic Watch Topic
  • New Topic