File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes MVC - But an older version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "MVC - But an older version" Watch "MVC - But an older version" New topic
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: 1824

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MVC - But an older version