title: Struts2 form to update object in Session map?
body: <p>In my build action, I have an object that I put into my session map.  </p>
  
  <pre><code>InputField testField = new InputField();
  testField.setName("testName");
  testField.setValue("testValue");
  sessionMap.put("TEST_FIELD", testField);
  </code></pre>
  
  <p>In the JSP, I want to build a textfield using this object. </p>
  
  <pre><code>&lt;s:textfield name="#session.TEST_FIELD.value"/&gt;
  </code></pre>
  
  <p>Upon submit of this form, I'd like to update the session with the new value from the textfield.</p>
  
  <p>And after filling in the textfield and submitting the form it's a part of, this 'testResult' still contains the original value from when the object was built.</p>
  
  <pre><code>String testResult = ((InputField) sessionMap.get("TEST_FIELD")).getValue();
  
  &gt;&gt; testValue
  </code></pre>
  
  <p>Where am I going wrong?</p>
  
  <p>Thanks!</p>