Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have written two methods that will perform different functions based on the parameter passed to it. In this case, it is an array of checkbox values (Strings). On my .JSP I have said list of checkboxes with the same name, but different values to differentiate.

How can I check the checkboxes I want, then press one of two submit buttons, and then have Java perform the functions in the backend depending on A) checkboxes selected and B) which button I clicked.

This is running on Struts 1, and while I have a basic understanding of the Action/ActionForms architecture, I'm confused as how to access an entire array of checkboxes through these, and differentiating which button was clicked.

share

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.