Jak uzyskać zaktualizowane wartości listy z JSP w mojej akcji?

Mam stronę JSP, w której iteruję listę i tworzę tabelę edytowalną.

<s:iterator value="test" id="countryList">
  <tr>
    <td><s:textfield name="countryCode" value="%{countryCode}" theme="simple" /></td>
    <td><s:textfield name="countryName" value="%{countryName}" theme="simple" /></td>
  </tr>
 </s:iterator>

Moja lista:

List<Country> test = new ArrayList<Country>();  

Klasa kraju:

public class Country {
    private String countryCode;
    private String countryName;


and the getter setters......

i powiedz, że wypełniam listę w następujący sposób:

Country country = new Country();
Country country1 = new Country();

country.setCountryCode("1");
country.setCountryName("India");

country1.setCountryCode("2");
country1.setCountryName("US");

test.add(country);
test.add(country1);

Teraz, gdy zmieniam wartościcountrycode icountryname w JSP powinienem uzyskać zaktualizowane wartości w mojej akcji. Ale czy nie jestem w stanie. Czy jest jakiś sposób, aby uzyskać te zaktualizowane wartości.

questionAnswers(1)

yourAnswerToTheQuestion