title: Display file png,jpg,... JSP with Spring MVC 3
body: <p>I'm working on a Spring MVC 3 web application, I have some JSPs that works well with an exception, I'm having some problem displaying images -gif, jpeg and so on-. I tried these on the JSP side:</p>
  
  <pre><code>&lt;img alt="TestDisplay" src="../images/XXX.gif" /&gt;
  &lt;img src="&lt;c:url value=""/&gt;images/XXX.gif" alt="TestDisplay"/&gt;
  &lt;img src="&lt;c:url value="/"/&gt;images/XXX.gif" alt="TestDisplay"/&gt;
  &lt;img src="&lt;c:url value="../images/XXX.gif"/&gt;" alt="TestDisplay"/&gt;
  &lt;img src="&lt;c:url value="/"/&gt;WEB-INF/images/XXX.gif" alt="TestDisplay"/&gt;
  &lt;img src="&lt;c:url value="../WEB-INF/images/XXX.gif"/&gt;" alt="TestDisplay"/&gt;
  &lt;img src="&lt;%=request.getContextPath()%&gt;/images/XXX.gif" alt="TestDisplay" /&gt;
  &lt;img src="images/XXX.gif" alt="TestDisplay"/&gt;
  &lt;img src="&lt;spring:url value="/images/XXX.gif" htmlEscape="true" /&gt;" align="right"     alt="TestDisplay"/&gt;
  </code></pre>
  
  <p>But I'm not sure if the real problem comes from pages or anywhere. Any helpful answer will be rated.</p>
  
  <p>Application Hierarchy Tree:</p>
  
  <p>/webapp</p>
  
  <p>//images</p>
  
  <p>+XXX.gif</p>
  
  <p>//WEB-INF</p>
  
  <p>///images</p>
  
  <p>+XXX.gif</p>
  
  <p>Yes, I know images folder is duplicated, I've done it just to try any of the above options.</p>
  
  <p>Thanks in advance</p>