File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Passing value with two buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Passing value with two buttons" Watch "Passing value with two buttons" New topic
Author

Passing value with two buttons

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
Hi
I have a jsp page with checkboxes and 2 buttons. Clicking on different buttons will pass to different functions. How do I get all the value of the checked boxes into each button to be passed?
Thanks
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50677

This is completely a client-side operation. Moving to the HTML/Javascript forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Are you saying you have two buttons and depending on which one the forms get submitted to different locations??
 
jQuery in Action, 2nd edition
 
subject: Passing value with two buttons
 
Threads others viewed
using same name for many buttons
how to handle mutiple buttons
syntax for page elements
radio buttons-storing different values
hidden parameter quesion in JS
jQuery in Action, 2nd edition

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture