wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with checkbox" Watch "Problem with checkbox" New topic
Author

Problem with checkbox

john mg
Greenhorn

Joined: Jul 30, 2009
Posts: 1
Hi,
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.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60755
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Problem with checkbox
 
Similar Threads
Action Chaning & action Form reset problem
Thoughts on chaining Actions
Implement Flash Scope to Struts 2 App
Browser Back button | Struts bridge
Not able to fetch the Action Error object