title: Images not shown in JasperReports' html report
body: <p>I'm working on a reporting web application using JasperReport and Spring MVC 3 to show generated reports (html) into web pages.</p>
  
  <p>I'm new to both frameworks and I'm having troubles rendering images in html reports.</p>
  
  <p>Tomcat log:</p>
  
  <p><code>No mapping found for HTTP request with URI [/&lt;app-name&gt;/&lt;image-name&gt;] in DispatcherServlet with name '&lt;app-name&gt;'</code></p>
  
  <p>I guess that images in the report are not shown probably due to the <code>DispatcherServlet</code> mapping url: <code>&lt;url-pattern&gt;/&lt;/url-pattern&gt;</code>.</p>
  
  <p>Using the <code>&lt;mvc:resources /&gt;</code> tag could be the solution?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've added some export parameters to the model:</p>
  
  <pre><code>model.addAttribute("net.sf.jasperreports.engine.export.JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR",
              Boolean.TRUE);
  model.addAttribute("net.sf.jasperreports.engine.export.JRHtmlExporterParameter.IMAGES_DIR_NAME",
              request.getSession().getServletContext()
                      .getRealPath("/WEB-INF/reports/images"));
  model.addAttribute("net.sf.jasperreports.engine.export.JRHtmlExporterParameter.IMAGES_URI",
              request.getContextPath() + "/WEB-INF/reports/images");
  </code></pre>
  
  <p>but the problem persists.</p>