| Author |
MVC - But an older version
|
K Robert
Ranch Hand
Joined: May 16, 2003
Posts: 116
|
|
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
Joined: Aug 20, 2001
Posts: 1815
|
|
|
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?
|
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
|
 |
K Robert
Ranch Hand
Joined: May 16, 2003
Posts: 116
|
|
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.
|
 |
 |
|
|
subject: MVC - But an older version
|
|
|