title: Howto set values of hashmap from Java class in JSP page for further usage in controller
body: <p>Need some help solving the following issue.</p>
  
  <p>I have web-application in Java, with Spring (mvc, security), Hibernate, and so on. 
  Web pages sources are in JSP</p>
  
  <p>I have a list of variables-indices, for which I need to set values and then automate it's processing. Say, client sees them in format:</p>
  
  <pre><code>A1.1 - Description - Dropdown list(0, 0.5, 1)
  A1.2 - Description - Dropdown list(0, 0.5, 1)
  ...etc
  </code></pre>
  
  <p>Domain object is:</p>
  
  <pre><code>public class A1Model {
      private HashMap&lt;Integer, Double&gt; map;
      //initilising, getter and setter for map object
  }
  </code></pre>
  
  <p>JSP page I have:</p>
  
  <pre><code>&lt;form:form modelAttribute="m1ChapterModel" method="POST" action="${saveUrl}"&gt;
          &lt;c:forEach items="${m1ChapterModel.map}" var="m1_parameter_i"&gt;           
                      A1.${m1_parameter_i.key}
                  &lt;spring2:message code="M1.1.label"/&gt;
                  &lt;form:select path="${m1ChapterModel.map[m1_parameter_i.key]}"&gt;
                      &lt;form:option value="0"/&gt;
                      &lt;form:option value="0.5"/&gt;
                      &lt;form:option value="1"/&gt;
  ....
  </code></pre>
  
  <p>But thats not working, of course. The problem is:</p>
  
  <pre><code>&lt;form:select path="${m1ChapterModel.map[m1_parameter_i.key]}"&gt;
  </code></pre>
  
  <p>Question is: how can i modify Java class and JSP to get it working?</p>