title: How do I map my HashMap in the ActionBean with the form on the JSP?
body: <p>I am using Stripes. My Action bean has a HashMap which has id(String) and quantity(int). On the JSP I am submitting a Form, the id and the quantity I want to map to the HashMap so that all the ids and quantity on the form are 'put' in the HashMap. How do I do it?</p>
  
  <p>I have done something like - </p>
  
  <p>In the ActionBean(with getter and setter) - </p>
  
  <pre><code>private Map&lt;String, Integer&gt; productVariantMap = new HashMap&lt;String, Integer&gt;();
  </code></pre>
  
  <p>on the JSP - </p>
  
  <pre><code>&lt;s:useActionBean
  beanclass="com.hk.web.action.core.b2b.B2BAddToCartAction" var="atc"/&gt;
  &lt;s:useActionBean&gt;
  </code></pre>
  
  <p>and I am picking up the values in the onsubmit through a loop and putting the values like</p>
  
  <pre><code> ${atc:productVariantMap.put(id, quantity)};
   or 
   $(atc.productVariantMap.put(id,quantity)};
  </code></pre>
  
  <p>None of these works. Suggest me a way to map my HashMap or add these values as per my requirement.
  Thanks.</p>