struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanth <>
Subject Array of submit buttons
Date Thu, 14 Feb 2019 23:31:37 GMT

I have a form with tabular data and need to have delete buttons for each row. So have a ArrayList<String>
in the action and the form has <s:submit name="delete[%{#rowNumber}]" value="Delete"/>
an iterator. When the user clicks on the Delete button the ArrayList<String> was not
populated. So changed the ArrayList to a Map. Interestingly the map is populated but the value
in the map is a
String array, rather than a single String, with one element having string Delete.

Do s:submit work differently from s:textfield when it comes to saving data to ArrayList or


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message