title: Background image not showing in jsp dynamic web project
body: <p>Hi I am trying to use a background image in home.jsp page.when i run the project image is not loading a red cross mark is showing instead of the image</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
         &lt;%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%&gt;
  
      &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&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;link rel="stylesheet" href="ac-styles.css" type="text/css" media="screen" /&gt;
  
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Home Page&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body  &gt;
  &lt;img src="img/bg.png"&gt;
  
  
  &lt;p&gt; Hello This Is The Home Page For your J2ee Spring Application&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I had placed the image under</p>
  
  <p><img src="https://i.stack.imgur.com/5AnBa.png" alt="enter image description here"></p>
  
  <p>when i run the application the result is</p>
  
  <p><img src="https://i.stack.imgur.com/TwIBE.png" alt="enter image description here"></p>
  
  <p>please help..
  Thanks in advance..</p>