title: How to delegate Map data structure to helper Class?
body: <p>I have a Servlet where i use <code>Map&lt;Integer, String&gt;</code> for month, day and year to get displayed in <code>Select tag</code> with help of JSTL tag.</p>
  
  <p>Like for example in a Servlet Code:</p>
  
  <pre><code>// Storing month in key-value pair
  Map&lt;Integer, String&gt; months = new LinkedHashMap&lt;Integer,String&gt;();
  months.put(1, new String("Jan"));
  months.put(2, new String("Feb"));
  months.put(3, new String("Mar"));
  months.put(4, new String("Apr"));
  ...
  
  // Putting month in request scope to be accessed in JSP
  request.setAttribute("months", months);
  </code></pre>
  
  <p>But, I want to write Map data structure code in other <code>Helper class</code> and call it in Servlet so that my Servlet becomes less tedious</p>
  
  <p>Question: </p>
  
  <ol>
  <li>How to delegate to helper class/method?</li>
  <li>How to call it in request scope in Servlet?</li>
  </ol>