Array of submit buttons
Hi, I have a form with tabular data and need to have delete buttons for each row. So have a ArrayList in the action and the form has inside an iterator. When the user clicks on the Delete button the ArrayList 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 Map? Thanks, Prasanth
Map backed form
Hi, I have a map (Map) but based on the data entered by the user the value in the Map is Double or String. Example if the user enters a value of 10 then it is coming in as double but if the user enters 10.5 then a string is present in the value. Does Struts2 look at the data types of the key and value of the map and set the key and values in the map accordingly? If not, what is the best practice for the declaration of Map, is there a way to force Struts2 to only have Double objects as values? Thanks, Prasanth