title: Problems with displaying image in portlet using jsf
body: <p>I need some help with showing images in my portlet. I have images somewhere on
  HDD. I wrote servlet ImageServlet with doGet() method. I registered servlet
  in web.xml with mapping /images/*.</p>
  
  <p>The problem begins when i try to show image: </p>
  
  <p><code>&lt;h:graphicImage url="/images/image.png" /&gt;</code></p>
  
  <p>The doGet() method in servlet is not called. HTML output I get is:</p>
  
  <p><code>&lt;img src="/PortletName/images/image.png"/&gt;</code></p>
  
  <p>However when I'm using other tag, for example: </p>
  
  <p><code>&lt;jsp:include file="/images/image.png"/&gt;</code></p>
  
  <p>doGet() in ImageServlet is called (it doesn't work
  obviously, but it shows that servlet is registered correctly).</p>
  
  <p>I tried mapping /PortletName/images/*, but it didn't help. And I can't write url without '/' in the beginning (I get an exception - Liferay
  forbids it).</p>
  
  <p>Am I missing something while calling servlet from h:graphicImage? Or is there any way to get rid of /PortletName/ in the generated HTML? Or is there other way to display image (using include or something)? </p>
  
  <p>Help would be appreciated :)</p>
  
  <p>Edit:
   JSF 1.1; DTD portlet application 4.3.0; portlet-app_1_0.xsd; org.apache.portals.bridges.portletfilter.FilterPortlet</p>