File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem with checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with checkbox" Watch "Problem with checkbox" New topic

Problem with checkbox

john mg

Joined: Jul 30, 2009
Posts: 1
I have a jsp page which has check boxes in it. when jsp loads first time all the setter methods are invoked as expected. When form is submitted after checking all the checkboxes first reset method of FormA is called then all the setter methods are called from here control goes to intermediary actionA which forward the control to another actionB.It is at his point FormA reset method is called but setter methods from this form are getting called.

Both ActionA and ActionB uses FormA. Even after resetting the checkboxes value in reset method setter methods are not getting called for ActionB.

FormA(setter methods gets called) - > Submit Form (reset method + setter method called) -> ActionA (forward to Action B) -> only reset method called ->Action B.

Not sure why setter methods are not getting called even after reset method is resetting check box values.

Any help is appreciated.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

"code rancher", please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Problem with checkbox
jQuery in Action, 3rd edition