title: Spring welcome-file-list correct mapping
body: <p>I know that in spring I must define welcome-file, which should be outside of WEB-INF folder, so I define it like this:</p>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;spring&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>But actually my real code is in WEB-INF/jsp/contact.jsp</p>
  
  <p>So I always have to do this:</p>
  
  <pre><code>&lt;jsp:forward page="/index"&gt;&lt;/jsp:forward&gt;
  </code></pre>
  
  <p>And in my controller this means:</p>
  
  <pre><code>@RequestMapping("/index")
  public String listContacts(Map&lt;String, Object&gt; map) {
  
      map.put("contact", new Contact());
      map.put("contactList", contactService.listContact());
  
      return "contact";
  }
  </code></pre>
  
  <p>How can I make it this way, that welcome-file always goes to my index mapping, which leads to contact.jsp?</p>
  
  <p>Feel free to ask questions, if this was confusing...</p>