This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Actually I would not advise using a single URL for multiple actions.
You didn't give much context on your issue. If the buttons are submit buttons in a form, you can use an onsubmit handler to change out the action of the form just before submission. If not, then using disparate onclick handlers will let each button do whatever they want.