title: Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp
body: <p>I'm following a tutorial on udemy. In the tutorial he is using eclipse. But i'm following the course with intellij. Every thing works fine but one thing i keep noticing is that when he runs the servlets or jsp pages it is always shows the project name before the servlet(<a href="http://localhost:8080/myapp/index.jsp" rel="nofollow">http://localhost:8080/myapp/index.jsp</a>). 
  But when i create an web application on intellij it just shows  <a href="http://localhost:8080/index.jsp" rel="nofollow">http://localhost:8080/index.jsp</a>.</p>
  
  <p>So the question is how can get the project name before the /index.jsp.</p>
  
  <p>I tried to add this to the web.xml file but it  does not seems to work </p>
  
  <pre><code>&lt;display-name&gt;myApp&lt;/display-name&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  </code></pre>