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.
You have to handle it on the server than. No other option. Look to see what button was clicked in the form submission.
Joined: Jan 31, 2004
Originally posted by Eric Pascarello: You have to handle it on the server than. No other option. Look to see what button was clicked in the form submission.
Thanks Eric :-)
I have done it the way you say. Since I'm using Struts i used an Action who looks which buttons was clicked and then link to the appropiate page. But I still have one problem.
No, if i do the button-clicked check on the server, I don't know how can i send the related hidden values to the clicked button.
I could have the same hiddens repeated with different names for each button, and then sent all of them, the ones related to the clicked button will have been populated with values and all the others will be sent blank. But I don't really like this solution. Maybe you can point me to other ideas.