title: JSP - HTTP Status 404 - The requested resource is not available
body: <p>Hi I am new here and have an issue in JSP. In Eclipse, I created a Dynamic Web Project. I right clicked on WEB-INF folder to create a new folder named jsp. In the folder jsp, I created a new jsp file named "yes.jsp". The jsp file is a simple jsp file.</p>
  
  <p>This is yes.jsp</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Yes&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Yes
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now, in my web.xml, when I want to run yes.jsp, I wrote my web.xml as below</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;test&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;WEB-INF/jsp/yes.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>In the welcome-file I have tried various other alternatives like jsp/yes.jsp, /jsp/yes.jsp, jsp\yes.jsp</p>
  
  <p>But every time I run this, I get the response like </p>
  
  <p>HTTP Status 404 - </p>
  
  <hr>
  
  <p>type Status report</p>
  
  <p>message </p>
  
  <p>description The requested resource is not available.</p>
  
  <hr>
  
  <p>Apache Tomcat/7.0.55 </p>
  
  <p>Please help me to understand where I am going wrong. </p>
  
  <p>Thank you!</p>