title: javax.servlet.ServletException: Could not resolve view with name 'login' in servlet with name 'dispatcher'
body: <blockquote>
  <p>SEVERE: Servlet.service() for servlet [dispatcher] in context with path [] threw exception [Could not resolve view with name 'login' in servlet with name 'dispatcher'] with root cause
  javax.servlet.ServletException: Could not resolve view with name 'login' in servlet with name 'dispatcher'</p>
  </blockquote>
  <p><code>web.xml</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  <p>And from a controller, we are just returning login page.</p>
  <p>like <code>return &quot;login&quot;;</code></p>
  <p>I also added a jstl dependency to the <code>pom.xml</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;jstl&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>