Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC - But an older version

 
K Robert
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an app that I am debugging that uses a jsp, value object(VO), and a binder.

In the jsp, I have a boolean(checkbox), that I need to store in the VO and I have a getter and setter method:


For some reason, they aren't grabbing the value of the boolean and always maintain "false". Am I missing anything?
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code looks fine to me, so the problem must be elsewhere. Where's the code that takes the values from the form and sets them in the VO? Is that set correctly?
 
K Robert
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the jsp code:



The intial value in the VO is set to false. I have print statements everywhere and no matter if the box is checked or not, it always displays "false" through to the binder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic