I have a form. I want it to have two buttons (buttonA, buttonB). Is there a better way to figure out which button was clicked than keeping a hidden input field, and setting its value via javascript in onClick() to a different string for each?
This is what this article is demonstrating: http://www.java2s.com/Code/Java/JSP/JspformUsingButtons.htm
But it seems a little weird, is there no better way than jumping through those hoops?
Thanks