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.