You can use one form. Use the fact that the name-value pair of the pressed button will be sent as a request parameter. While filling in the HTML form, dynamically embed the locale identifier of the button name.
<input type="submit" name="delete_1" value="Delete" /> <input type="submit" name="delete_2" value="Delete" /> <input type="submit" name="delete_3" value="Delete" />
And then on the server side, check if any of them were clicked (pseudo / Java style):
for (Locale locale : locales) { if (request.getParameter("delete_" + locale.getId()) != null) { // Delete button is pressed for this locale. } }
source share